MCPcopy Create free account
hub / github.com/cli/cli / hasSecurityEdits

Function hasSecurityEdits

pkg/cmd/repo/edit/edit.go:656–658  ·  view source on GitHub ↗
(edits EditRepositoryInput)

Source from the content-addressed store, hash-verified

654}
655
656func hasSecurityEdits(edits EditRepositoryInput) bool {
657 return edits.enableAdvancedSecurity != nil || edits.enableSecretScanning != nil || edits.enableSecretScanningPushProtection != nil
658}
659
660type SecurityAndAnalysisInput struct {
661 EnableAdvancedSecurity *SecurityAndAnalysisStatus `json:"advanced_security,omitempty"`

Callers 1

NewCmdEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected