Skip to content

Commit

Permalink
better provenenace predicate type check
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
  • Loading branch information
ramonpetgrave64 committed May 29, 2024
1 parent 5d0188a commit cb1b033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifiers/internal/gha/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func extractAttestations(attestations []attestation) (*attestation, *attestation
for i := range attestations {
att := attestations[i]
// Provenance type verification.
if att.PredicateType == common.ProvenanceV02Type || att.PredicateType == common.ProvenanceV1Type {
if _, ok := provenancePredicates[att.PredicateType]; ok {
provenanceAttestation = &att
}
// Publish type verification.
Expand Down

0 comments on commit cb1b033

Please sign in to comment.