chore: add consolidated SBOM generation workflow - #765
Conversation
- Single sbom.yml workflow replaces duplicate sbom-release.yml - Pinned syft version (v1.41.0) for supply-chain integrity - Uses gh-token GITHUB_TOKEN for release asset management - Idempotent: deletes existing SBOM asset before re-upload - Fixed shell syntax (no stray quoted string) - Runs on v* tag pushes only
There was a problem hiding this comment.
Requesting changes — the workflow as written will fail on first run and will also trip the repo's blocking zizmor gate.
- Critical:
$SYFT_VERSIONis referenced in the "Install Syft" step but only defined in the next step'senv:block — it expands empty, making the install URL/v/install.sha 404. Move the env var up (job- or step-level) so both steps see it. - CI-gating:
actions/checkout@v4/actions/setup-go@v5are mutable-tag refs, unlike the SHA-pinnedactions/*used everywhere else in this repo.zizmor.ymlruns blocking at informational severity on PRs and will flagunaudited, failing the merge. Pin to the same SHAs used inci.yml. - Nit: the stray quoted string on the last line is still present (PR description claims it was removed); collapse that multi-line notice into one
echo.
All three have inline comments with concrete fixes.
|
Review posted. Summary of the review: Requesting changes — posted 3 inline comments + a top-level review on PR #765.
Also noted (not commented): the PR description says it "replaces duplicate sbom-release.yml," but that file doesn't exist on |
Resolve the issues that blocked PR #764: fix the stray quoted string in the final run block, move the syft SYFT_VERSION env onto the install step and drop its double-v, SHA-pin checkout and drop the unused setup-go step, and replace the moving curl|sh syft install with a pinned release download verified against its published checksum. Scope release-upload permissions to the job and move RELEASE_ID into env to silence zizmor. The workflow now passes zizmor with no findings. Co-authored-by: opencode <opencode@local>
a9885c9 to
ed21ea6
Compare
All issues raised in this stale review (SYFT_VERSION install-step scoping + double-v, unpinned actions/checkout, unused setup-go step, and the stray trailing quoted-string line) have been fixed and verified in commit ed21ea6. CI (zizmor, branch-policy, etc.) is green on the current head.

chore: add consolidated SBOM generation workflow