You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: release jobs all hold write tokens, actions unpinned (zizmor: 116 findings) #572
zizmor 1.30 reports 116 findings on .github/workflows (57 high). The ones that matter:
release.yaml grants write access to every job. It sets contents, pull-requests and packages to write, plus id-token: write, at workflow level. Every job inherits that, including the eleven github_build jobs, which run npm install and the build scripts of every Rust dependency. A compromised dependency there could edit the release, push to GHCR, or mint a crates.io publishing token. Only four jobs need any of it.
Actions are referenced by movable tags (@v7, @master, @cross, …); only one checkout is pinned. A retagged or compromised action runs with the tokens above.
Every actions/checkout persists the token into .git/config.
Release and RPM builds use npm install instead of npm ci, so the assets that ship are not guaranteed to match package-lock.json.
Workflow templating:gh release edit ${{ needs.release_please.outputs.tag_name }} splices the value into the script.
Nothing checks the workflows themselves. actionlint or zizmor would have flagged all of the above.
Proposal
Read-only token by default, with write permissions granted per job.
Pin actions to SHAs with version comments. Dependabot already updates those.
persist-credentials: false on checkouts.
npm ci.
Pass template values through env.
Add a small workflow-lint.yml that runs actionlint and zizmor on .github/** changes.
Activity