Skip to content

Commit

Permalink
Merge pull request #214 from wlynch/v0.2-type-alias
Browse files Browse the repository at this point in the history
Add type aliases to v0.2 provenance to revert backwards incompatible change.
  • Loading branch information
adityasaky committed Mar 8, 2023
2 parents d0651fe + 79582c4 commit 2d81ebf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions in_toto/slsa_provenance/v0.2/provenance.go
Expand Up @@ -11,6 +11,13 @@ const (
PredicateSLSAProvenance = "https://slsa.dev/provenance/v0.2"
)

// These are type aliases to common to avoid backwards incompatible changes.
type (
DigestSet = common.DigestSet
ProvenanceBuilder = common.ProvenanceBuilder
ProvenanceMaterial = common.ProvenanceMaterial
)

// ProvenancePredicate is the provenance predicate definition.
type ProvenancePredicate struct {
// Builder identifies the entity that executed the invocation, which is trusted to have
Expand Down

0 comments on commit 2d81ebf

Please sign in to comment.