Add SLSA generic generator workflow#13
Open
RAIHERE wants to merge 2 commits intoduneanalytics:mainfrom
Open
Conversation
PR SummaryIntroduce a GitHub Actions workflow that builds artifacts and generates SLSA level 3 provenance on releases.
Written by Cursor Bugbot for commit bf7499a. Configure here. |
| # List the artifacts the provenance will refer to. | ||
| files=$(ls artifact*) | ||
| # Generate the subjects (base64 encoded). | ||
| echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}" |
There was a problem hiding this comment.
Bug: Output variable name mismatch breaks provenance generation
The step output variable name hashes doesn't match what the job output expects. Line 55 sets hashes=$(sha256sum...) but line 23 tries to read steps.hash.outputs.digests. This mismatch causes needs.build.outputs.digests to be empty, so the provenance job receives no digest data. Either the step should use digests= or the job output should reference steps.hash.outputs.hashes.
Additional Locations (1)
This workflow runs tests and publishes a Node.js package to GitHub Packages upon release creation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.