Repository navigation
ci(publish): scan the hanfix release files with the shared publish gates - #20
Merged
Merged
Conversation
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.
Scans the hanfix release files with the shared publish gates (
NaNIsaac/.githubpublish-gates.ymlat 3c14708) before they go to PyPI.maturin builds the wheels in a matrix, so the gates run in their leak-only mode: they download the files this workflow built and check them for secrets (gitleaks), credential file names, sizes and home-folder paths; they do not build, test or install.
dist-wheel-<target>anddist-sdist, so one pattern,dist-*, matches exactly the release files and nothing else in the run.gatesneeds the wheels and sdist and checksdist-*.publishnow needsgatesand downloads the samedist-*artifacts.path-allowlistlists the two GitHub runner homes the files carry:/home/runnerand/Users/runner, in the SBOM (sboms/hanfix.cyclonedx.json) that maturin writes into the Linux and macOS wheels. The Windows wheels and the sdist carry none.Gates-only run of this branch by
workflow_dispatch(all eight targets, no upload) passed: 9 artifacts downloaded, 9 files unpacked, no findings: https://github.com/NaNIsaac/hanfix/actions/runs/43993693602local-ci: 5845786 | leak step at 3c14708 with this path-allowlist on the hanfix 0.2.9 files from PyPI (8 wheels, sdist): no findings; without it, 6 SBOM files with runner homes; workflow parses | not run: the release itself (no tag)
Part of: PUBLISH-GATES-ROLLOUT