MCPcopy Index your code
hub / github.com/cli/cli / IsSupportedSecretEntity

Function IsSupportedSecretEntity

pkg/cmd/secret/shared/shared.go:86–99  ·  view source on GitHub ↗
(app App, entity SecretEntity)

Source from the content-addressed store, hash-verified

84}
85
86func IsSupportedSecretEntity(app App, entity SecretEntity) bool {
87 switch app {
88 case Actions:
89 return entity == Repository || entity == Organization || entity == Environment
90 case Agents:
91 return entity == Repository || entity == Organization
92 case Codespaces:
93 return entity == User || entity == Organization || entity == Repository
94 case Dependabot:
95 return entity == Repository || entity == Organization
96 default:
97 return false
98 }
99}

Callers 4

removeRunFunction · 0.92
listRunFunction · 0.92
setRunFunction · 0.92

Calls

no outgoing calls

Tested by 1