Skip to content

Add SLSA generic generator workflow#13

Open
RAIHERE wants to merge 2 commits intoduneanalytics:mainfrom
RAIHERE:main
Open

Add SLSA generic generator workflow#13
RAIHERE wants to merge 2 commits intoduneanalytics:mainfrom
RAIHERE:main

Conversation

@RAIHERE
Copy link
Copy Markdown

@RAIHERE RAIHERE commented Dec 13, 2025

No description provided.

@cursor
Copy link
Copy Markdown

cursor Bot commented Dec 13, 2025

PR Summary

Introduce a GitHub Actions workflow that builds artifacts and generates SLSA level 3 provenance on releases.

  • CI/CD — GitHub Actions:
    • Add /.github/workflows/generator-generic-ossf-slsa3-publish.yml to generate SLSA L3 provenance on release.
    • build job: checks out repo, creates artifacts, outputs base64-encoded SHA256 subjects.
    • provenance job: runs slsa-framework/slsa-github-generator reusable workflow (generator_generic_slsa3.yml@v1.4.0) with required permissions and uploads assets to the release.

Written by Cursor Bugbot for commit bf7499a. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Comment @cursor review or bugbot run to trigger another review on this PR

# List the artifacts the provenance will refer to.
files=$(ls artifact*)
# Generate the subjects (base64 encoded).
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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)

Fix in Cursor Fix in Web

This workflow runs tests and publishes a Node.js package to GitHub Packages upon release creation.
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