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

Function publicGoodPolicy

pkg/cmd/attestation/verification/sigstore_integration_test.go:149–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func publicGoodPolicy(t *testing.T) verify.PolicyBuilder {
150 t.Helper()
151
152 artifactPath := test.NormalizeRelativePath("../test/data/sigstore-js-2.1.0.tgz")
153 publicGoodArtifact, err := artifact.NewDigestedArtifact(nil, artifactPath, "sha512")
154 require.NoError(t, err)
155
156 return buildPolicy(t, *publicGoodArtifact)
157}
158
159func buildPolicy(t *testing.T, artifact artifact.DigestedArtifact) verify.PolicyBuilder {
160 t.Helper()

Callers 1

TestLiveSigstoreVerifierFunction · 0.85

Calls 4

NormalizeRelativePathFunction · 0.92
NewDigestedArtifactFunction · 0.92
buildPolicyFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…