ci: harden GitHub Actions workflows and add zizmor scan - #240
Open
antonwolfy wants to merge 2 commits into
Open
Conversation
antonwolfy
requested review from
jharlow-intel,
ndgrigorian,
vlad-perevezentsev and
xaleryb
as code owners
September 3, 2026 12:14
Adds a CI job that runs the zizmor static analyzer over the workflow files under .github/, and applies the corresponding hardening so the existing workflows pass the audit: - add persist-credentials: false to every actions/checkout step that lacked it - narrow top-level permissions: read-all to permissions: contents: read - add a 7-day cooldown to the dependabot update entries This is a CI/configuration-only change; no library code, tests, or documentation are affected.
antonwolfy
force-pushed
the
harden-gh-workflows-zizmor
branch
from
September 3, 2026 12:16
826452b to
628fb7a
Compare
zizmor flagged three medium-severity template-injection findings where workflow_call string inputs were expanded directly inside run: blocks. Route each flagged input through an env: var and reference it as a shell variable so no untrusted value is interpolated into the script text.
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.
Adds a CI job that runs the zizmor static analyzer over the workflow files under
.github/.zizmoraudits GitHub Actions workflows for supply-chain and privilege-escalation weaknesses — unpinned action references, credential persistence through the checkout token, template injection via${{ ... }}expansion inrun:blocks, and overly broadGITHUB_TOKENpermissions.Alongside the new scan, this applies the corresponding hardening to the existing workflows so they pass the audit:
persist-credentials: falseto everyactions/checkoutstep that lacked itpermissions: read-alltopermissions: contents: readcooldownto the dependabot update entriesThis is a CI/configuration-only change; no library code, tests, or documentation are affected.