Skip to content

ci(publish): scan the hanfix release files with the shared publish gates - #20

Merged
NaNIsaac merged 1 commit into
mainfrom
ci/publish-gates
Nov 17, 2026
Merged

NaNIsaac merged 1 commit into
mainfrom
ci/publish-gates

Conversation

@NaNIsaac

Copy link
Copy Markdown
Owner

Scans the hanfix release files with the shared publish gates (NaNIsaac/.github publish-gates.yml at 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.

  • The build artifacts are renamed dist-wheel-<target> and dist-sdist, so one pattern, dist-*, matches exactly the release files and nothing else in the run.
  • gates needs the wheels and sdist and checks dist-*. publish now needs gates and downloads the same dist-* artifacts.
  • path-allowlist lists the two GitHub runner homes the files carry: /home/runner and /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.
  • The gates do not search compiled binaries for home-folder paths (files with a NUL byte in their first 8 KB are skipped). hanfix's binaries carry none, checked locally.

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/43993693602

local-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

@NaNIsaac
NaNIsaac merged commit 5677b32 into main Nov 17, 2026
45 of 46 checks passed
@NaNIsaac
NaNIsaac deleted the ci/publish-gates branch November 17, 2026 01:21
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