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

Function hasSecurityEdits

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewCmdEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected