Skip to content

Commit c981f91

Browse files
committed
re-add security_advisories toolset
1 parent 15905bf commit c981f91

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/github/tools.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
295295
// toolsets.NewServerTool(DeleteWorkflowRunLogs(getClient, t)),
296296
// )
297297

298-
// securityAdvisories := toolsets.NewToolset(ToolsetMetadataSecurityAdvisories.ID, ToolsetMetadataSecurityAdvisories.Description).
299-
// AddReadTools(
300-
// toolsets.NewServerTool(ListGlobalSecurityAdvisories(getClient, t)),
301-
// toolsets.NewServerTool(GetGlobalSecurityAdvisory(getClient, t)),
302-
// toolsets.NewServerTool(ListRepositorySecurityAdvisories(getClient, t)),
303-
// toolsets.NewServerTool(ListOrgRepositorySecurityAdvisories(getClient, t)),
304-
// )
298+
securityAdvisories := toolsets.NewToolset(ToolsetMetadataSecurityAdvisories.ID, ToolsetMetadataSecurityAdvisories.Description).
299+
AddReadTools(
300+
toolsets.NewServerTool(ListGlobalSecurityAdvisories(getClient, t)),
301+
toolsets.NewServerTool(GetGlobalSecurityAdvisory(getClient, t)),
302+
toolsets.NewServerTool(ListRepositorySecurityAdvisories(getClient, t)),
303+
toolsets.NewServerTool(ListOrgRepositorySecurityAdvisories(getClient, t)),
304+
)
305305

306306
// // Keep experiments alive so the system doesn't error out when it's always enabled
307307
// experiments := toolsets.NewToolset(ToolsetMetadataExperiments.ID, ToolsetMetadataExperiments.Description)
@@ -373,7 +373,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
373373
// tsg.AddToolset(experiments)
374374
// tsg.AddToolset(discussions)
375375
// tsg.AddToolset(gists)
376-
// tsg.AddToolset(securityAdvisories)
376+
tsg.AddToolset(securityAdvisories)
377377
// tsg.AddToolset(projects)
378378
// tsg.AddToolset(stargazers)
379379
// tsg.AddToolset(labels)

0 commit comments

Comments
 (0)