Skip to content

Fix the syft install: verify the tarball under its release filename - #281

Merged
SiteRelEnby merged 1 commit into
mainfrom
ci/fix-syft-checksum-name
Sep 9, 2026
Merged

Fix the syft install: verify the tarball under its release filename#281
SiteRelEnby merged 1 commit into
mainfrom
ci/fix-syft-checksum-name

Conversation

@SiteRelEnby

Copy link
Copy Markdown
Contributor

Fixes the deterministic docker-publish failure on main introduced by #279: the install downloaded the release tarball renamed to syft.tar.gz, but sha256sum -c verifies the filename recorded inside the checksums file, so verification failed with "No such file or directory" on every attempt (and the retry wrapper dutifully retried a permanent failure four times).

The tarball now keeps its original release filename. Root cause of the escape: the docker jobs are skipped on pull requests, so #279's new step first executed on the post-merge main push. This time the exact script body was executed locally against the real v1.51.1 release before committing: checksum OK, extraction OK, binary runs.

Worth considering separately: running the docker job (build only, no push) on PRs that touch .github/workflows/ so workflow changes to that path cannot ship untested again.

The retried install downloaded the tarball renamed to syft.tar.gz, but
sha256sum -c verifies the filename recorded inside the checksums file,
so verification could never pass and every docker publish job on main
failed deterministically (retried four times, identically). The docker
jobs are skipped on pull requests, so the step's first execution was the
post-merge main push.

The tarball now keeps its original release filename and the whole script
body was executed locally against the real release before this commit:
checksum OK, extraction OK, binary runs.
@SiteRelEnby
SiteRelEnby merged commit e15c46f into main Sep 9, 2026
18 checks passed
@SiteRelEnby
SiteRelEnby deleted the ci/fix-syft-checksum-name branch September 9, 2026 04:46
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