Skip to content

Commit

Permalink
Revert "Use ParsePredicateType helper here"
Browse files Browse the repository at this point in the history
This reverts commit 67d421a.
  • Loading branch information
codysoyland committed Nov 19, 2024
1 parent 693b391 commit 10a29ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/policy/attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ func AttestationToPayloadJSON(_ context.Context, predicateType string, verifiedA
if predicateType == "" {
return nil, "", errors.New("missing predicate type")
}
predicateURI, err := options.ParsePredicateType(predicateType)
if err != nil {
return nil, "", err
predicateURI, ok := options.PredicateTypeMap[predicateType]
if !ok {
// Not a custom one, use it as is.
predicateURI = predicateType
}
var payloadData map[string]interface{}

Expand Down

0 comments on commit 10a29ad

Please sign in to comment.