Skip to content

Commit 676518d

Browse files
committed
re-add code_security toolset
1 parent a5bab91 commit 676518d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/github/tools.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
239239
// toolsets.NewServerTool(PullRequestReviewWrite(getGQLClient, t)),
240240
// toolsets.NewServerTool(AddCommentToPendingReview(getGQLClient, t)),
241241
// )
242-
// codeSecurity := toolsets.NewToolset(ToolsetMetadataCodeSecurity.ID, ToolsetMetadataCodeSecurity.Description).
243-
// AddReadTools(
244-
// toolsets.NewServerTool(GetCodeScanningAlert(getClient, t)),
245-
// toolsets.NewServerTool(ListCodeScanningAlerts(getClient, t)),
246-
// )
242+
codeSecurity := toolsets.NewToolset(ToolsetMetadataCodeSecurity.ID, ToolsetMetadataCodeSecurity.Description).
243+
AddReadTools(
244+
toolsets.NewServerTool(GetCodeScanningAlert(getClient, t)),
245+
toolsets.NewServerTool(ListCodeScanningAlerts(getClient, t)),
246+
)
247247
// secretProtection := toolsets.NewToolset(ToolsetMetadataSecretProtection.ID, ToolsetMetadataSecretProtection.Description).
248248
// AddReadTools(
249249
// toolsets.NewServerTool(GetSecretScanningAlert(getClient, t)),
@@ -366,7 +366,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
366366
// tsg.AddToolset(users)
367367
// tsg.AddToolset(pullRequests)
368368
// tsg.AddToolset(actions)
369-
// tsg.AddToolset(codeSecurity)
369+
tsg.AddToolset(codeSecurity)
370370
// tsg.AddToolset(secretProtection)
371371
// tsg.AddToolset(dependabot)
372372
// tsg.AddToolset(notifications)

0 commit comments

Comments
 (0)