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

Function expandToGitHubURLRegex

pkg/cmd/attestation/verify/policy.go:25–28  ·  view source on GitHub ↗
(tenant, ownerOrRepo string)

Source from the content-addressed store, hash-verified

23}
24
25func expandToGitHubURLRegex(tenant, ownerOrRepo string) string {
26 url := expandToGitHubURL(tenant, ownerOrRepo)
27 return fmt.Sprintf("(?i)^%s/", url)
28}
29
30func newEnforcementCriteria(opts *Options) (verification.EnforcementCriteria, error) {
31 // initialize the enforcement criteria with the provided PredicateType

Callers 1

newEnforcementCriteriaFunction · 0.85

Calls 1

expandToGitHubURLFunction · 0.85

Tested by

no test coverage detected