Skip to content

Commit 0c9e6bf

Browse files
Copilotomgitsads
andcommitted
Enable secret_protection toolset in DefaultToolsetGroup
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
1 parent 3985dc0 commit 0c9e6bf

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
@@ -244,11 +244,11 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
244244
// toolsets.NewServerTool(GetCodeScanningAlert(getClient, t)),
245245
// toolsets.NewServerTool(ListCodeScanningAlerts(getClient, t)),
246246
// )
247-
// secretProtection := toolsets.NewToolset(ToolsetMetadataSecretProtection.ID, ToolsetMetadataSecretProtection.Description).
248-
// AddReadTools(
249-
// toolsets.NewServerTool(GetSecretScanningAlert(getClient, t)),
250-
// toolsets.NewServerTool(ListSecretScanningAlerts(getClient, t)),
251-
// )
247+
secretProtection := toolsets.NewToolset(ToolsetMetadataSecretProtection.ID, ToolsetMetadataSecretProtection.Description).
248+
AddReadTools(
249+
toolsets.NewServerTool(GetSecretScanningAlert(getClient, t)),
250+
toolsets.NewServerTool(ListSecretScanningAlerts(getClient, t)),
251+
)
252252
// dependabot := toolsets.NewToolset(ToolsetMetadataDependabot.ID, ToolsetMetadataDependabot.Description).
253253
// AddReadTools(
254254
// toolsets.NewServerTool(GetDependabotAlert(getClient, t)),
@@ -367,7 +367,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
367367
// tsg.AddToolset(pullRequests)
368368
// tsg.AddToolset(actions)
369369
// tsg.AddToolset(codeSecurity)
370-
// tsg.AddToolset(secretProtection)
370+
tsg.AddToolset(secretProtection)
371371
// tsg.AddToolset(dependabot)
372372
// tsg.AddToolset(notifications)
373373
// tsg.AddToolset(experiments)

0 commit comments

Comments
 (0)