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

Function expandToGitHubURLRegex

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

Source from the content-addressed store, hash-verified

59}
60
61func expandToGitHubURLRegex(tenant, ownerOrRepo string) string {
62 url := expandToGitHubURL(tenant, ownerOrRepo)
63 return fmt.Sprintf("(?i)^%s", regexp.QuoteMeta(url+"/"))
64}
65
66func newEnforcementCriteria(opts *Options) (verification.EnforcementCriteria, error) {
67 // initialize the enforcement criteria with the provided PredicateType

Callers 1

newEnforcementCriteriaFunction · 0.85

Calls 1

expandToGitHubURLFunction · 0.85

Tested by

no test coverage detected