Skip to content

Conversation

@jiparis
Copy link
Member

@jiparis jiparis commented Mar 18, 2025

When using old CLI versions, only DSSE envelope is available. There is a bug introduced in #1890 that prevents it from being stored in the WorkflowRun table. This PR fixes it, so that it's backwards compatible.

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis requested review from javirln and migmartri March 18, 2025 20:27
SetAttestationDigest(digest)
if att != nil {
// Set attestation when using old CLI versions
q.SetAttestation(att)
Copy link
Member

Choose a reason for hiding this comment

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

but I thought that we wanted to store always bundle. Didn't we end up doing some sort of automatic wrapping on a bundle?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could. But even if we do it, old attestations must still be supported

q := r.data.DB.WorkflowRun.UpdateOneID(id).
SetAttestationDigest(digest)
if att != nil {
// Set attestation when using old CLI versions
Copy link
Member

Choose a reason for hiding this comment

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

ok, so make it even more obvious that this is a deprecated behavior

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis merged commit b4b9341 into chainloop-dev:main Mar 18, 2025
13 checks passed
@jiparis jiparis deleted the PFM-1836-fix branch March 18, 2025 20:50
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.

2 participants