(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func 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 | |
| 159 | func buildPolicy(t *testing.T, artifact artifact.DigestedArtifact) verify.PolicyBuilder { |
| 160 | t.Helper() |
no test coverage detected
searching dependent graphs…