Repository navigation
🤖 ci: harden workflow per zizmor audit - #56
Merged
Merged
Conversation
Addresses zizmor unpinned-uses findings. Version comments let Dependabot keep SHAs and tags in sync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release wheels are built from the same jobs that PRs populate the sccache for. Building tags without the cache removes the cache-poisoning path into published artifacts (zizmor cache-poisoning). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No job pushes back to the repo, so drop the persisted token from .git/config to avoid leaking it via uploaded artifacts (zizmor artipacked). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the zizmor findings on
.github/workflows/CI.yml.unpinned-uses). Each pin has a version comment so Dependabot updates the SHA and the tag together.uraimo/run-on-arch-actionis pinned to the currentv3branch-tag commit, which has no exact release tag, so its comment says# v3.cache-poisoning). PR and main builds still use the cache. Tag builds, which are the ones the release job publishes, now build clean.persist-credentials: falseon every checkout (7artipacked).Verification
zizmor --offline .→No findings to report(was 40: 33 high, 7 low)zizmor .with GitHub API access (online audits) →No findings to reportsccache: false) won't run until the next release.Deliberately not in this PR
PYPI_API_TOKEN(needs a PyPI-side configuration change)releasebehind a protected environment, limitingreleaseto tags (it currently also runs onworkflow_dispatch), and addingpattern:todownload-artifact🤖 Generated with Claude Code