Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented May 8, 2023

Enable new predicate v02 which contains in-toto 1.0 resource descriptors #60

It makes updates in the code to improve extensibility in the event of future changes of the predicate.

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
CreatedAt *time.Time `json:"createdAt"`
Envelope *dsse.Envelope `json:"envelope"`
statement *in_toto.Statement
predicateV1 *chainloop.ProvenancePredicateV01
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the predicate is not needed in fact since we are already providing the materials and env variables denormalized

return item, nil
}

func extractPredicateV1(statement *in_toto.Statement) (*chainloop.ProvenancePredicateV01, error) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to renderer.chainloop

migmartri added 3 commits May 9, 2023 13:26
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri marked this pull request as ready for review May 9, 2023 12:59
@migmartri migmartri changed the title feat(attestation): enable predicate v2 feat(attestation): enable predicate chainloop.dev/attestation/v0.2 with in-toto ResourceDescriptors May 9, 2023
@migmartri migmartri merged commit ed28f86 into chainloop-dev:main May 9, 2023
@migmartri migmartri deleted the 60-handle-new-format branch May 9, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant