Skip to content

feat(workflows-integration-demo): Update dagger pipeline to use workflow-name #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

javirln
Copy link
Member

@javirln javirln commented Jun 5, 2024

This patch modifies the dagger pipeline to use workflow-name when initializing the attestation. I additionally adds an API token by passing the value to CHAINLOOP_TOKEN.

It additionally removes the release.yaml file since the contract was expecting a dagger runner.

…low-name

Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
@javirln javirln requested review from migmartri and jiparis June 5, 2024 14:51
@javirln javirln self-assigned this Jun 5, 2024
@javirln javirln marked this pull request as ready for review June 5, 2024 14:51
@@ -44,9 +47,9 @@ func (m *BuildAndRelease) BuildAndPublish(ctx context.Context, proj *Directory,
// Attest the pieces of evidence
attestation = attestation.
// Container image
AddRawEvidence("image", res.imageRepo).
AddRawEvidence(res.imageRepo, dagger.ChainloopAttestationAddRawEvidenceOpts{Name: "image"}).
Copy link
Member

Choose a reason for hiding this comment

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

I guess this was broken?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would say so, the signature of the function is indeed:

func (r *ChainloopAttestation) AddRawEvidence(value string, opts ...ChainloopAttestationAddRawEvidenceOpts) *ChainloopAttestation {

@javirln javirln merged commit 560a28c into main Jun 21, 2024
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