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

Function hasSecurityEdits

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected