Skip to content
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

fix(ci): do not sign with no real chart update. #576

Closed
wants to merge 1 commit into from

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Oct 31, 2024

Description

Sign Helm chart only if the Helm chart has changed. If the chart version is already released, skip the signing step and the provenance file generation.

Related to #574

@jvanz jvanz self-assigned this Oct 31, 2024
Sign Helm chart only if the Helm chart has changed. If the chart version
is already released, skip the signing step and the provenance file
generation.

Signed-off-by: José Guilherme Vanz <[email protected]>
Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

Approving, I would like this merged as I think this is a good stop-gap solution that blocks every commit in main from creating bogus unused entries in the helm index.yaml.

It is not perfect, as GH releases are mutable and an attacker could delete/edit the release, making us skip the signing, pushing, and provenance, and then reinstate it, which is a problem for SLSA lvl3. Hence I look forward to a workflow that uses the artifacts created in it to discern if there's need to push or not.

@jvanz
Copy link
Member Author

jvanz commented Nov 1, 2024

I'm closing this in favor of a future PR fixing the chart releaser calls as well.

@jvanz jvanz closed this Nov 1, 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