Skip to content

Harden GitHub Actions workflows per zizmor findings#1212

Merged
reaperhulk merged 2 commits into
mainfrom
claude/busy-rubin-ogi5t
Jun 3, 2026
Merged

Harden GitHub Actions workflows per zizmor findings#1212
reaperhulk merged 2 commits into
mainfrom
claude/busy-rubin-ogi5t

Conversation

@alex
Copy link
Copy Markdown
Member

@alex alex commented Jun 3, 2026

Fixes the unpinned-uses, excessive-permissions, and artipacked findings from a zizmor (v1.25.2) scan of the workflows:

  • unpinned-uses: pin all remaining tag-referenced actions to commit SHAs with version comments (actions/checkout, actions/setup-python, actions/cache, dessant/lock-threads)
  • excessive-permissions: add top-level permissions: contents: read to ci.yml (the other workflows already had permissions blocks)
  • artipacked: set persist-credentials: false on the three checkout steps in ci.yml that were missing it
  • Fix stale # v4.2.2 comments on the existing checkout pins in wheel-builder.yml — SHA df4cb1c0 is actually v6.0.3

Also adds a 7-day dependabot cooldown for the github-actions ecosystem, so new action releases age a week before bump PRs are opened.

Remaining zizmor findings (unpinned-images on pyca-owned containers, low-confidence cache-poisoning in ci.yml, and the guarded workflow_run trigger in pypi-publish.yml) were intentionally left as-is.

https://claude.ai/code/session_0148cM5JsZTs8shcQDfnwxc6


Generated by Claude Code

claude added 2 commits June 3, 2026 22:21
- Pin all actions to commit SHAs (unpinned-uses)
- Add top-level 'permissions: contents: read' to ci.yml (excessive-permissions)
- Set 'persist-credentials: false' on remaining checkouts in ci.yml (artipacked)
- Fix stale version comments on checkout pins in wheel-builder.yml
  (SHA df4cb1c0 is v6.0.3, not v4.2.2)

https://claude.ai/code/session_0148cM5JsZTs8shcQDfnwxc6
@reaperhulk reaperhulk merged commit 0fe6ca0 into main Jun 3, 2026
60 checks passed
@alex alex deleted the claude/busy-rubin-ogi5t branch June 3, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants