Skip to content

ci: Add zizmor security scans - #1725

Draft
d3xter666 wants to merge 1 commit into
mainfrom
ci/zizmor-security-scan
Draft

d3xter666 wants to merge 1 commit into
mainfrom
ci/zizmor-security-scan

Conversation

@d3xter666

Copy link
Copy Markdown
Member

Add a single workflow that installs zizmor 1.33.1 directly in a Python virtual environment and reports GitHub annotations. Pull requests run offline without a token; pushes to main, the daily 04:15 UTC schedule, and manual runs enable online audits with the read-only GitHub token. Checkout remains pinned to its full commit SHA.

Pass the Release Please PR number through a quoted environment variable. Add line-specific baseline exceptions for the existing three-day Dependabot cooldowns and the npm 11 test workaround; all other default checks remain enabled.

- name: Install zizmor
run: |
python3 -m venv "$RUNNER_TEMP/zizmor-venv"
"$RUNNER_TEMP/zizmor-venv/bin/python" -m pip install --only-binary=:all: --no-deps zizmor==1.33.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This install version of zizmor is mutable.
We have to create a requirements file e.g. requirements-zizmor.txt:

zizmor==1.33.1 \
    --hash=sha256:<approved-wheel-sha256>

and update this line to:

"$RUNNER_TEMP/zizmor-venv/bin/python" -m pip install \
      --only-binary=:all: --no-deps --require-hashes \
      -r .github/workflows/requirements-zizmor.txt

Lastly, to get automated dependabot updates for this, inside dependabot.yml we have to add a config for pip:

- package-ecosystem: pip
  directory: /.github/workflows
  schedule:
    ... (similar to the existing configs like npm)

@d3xter666 d3xter666 changed the title ci: Add pinned zizmor security scans ci: Add zizmor security scans Dec 4, 2026

This branch has not been deployed

No deployments
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.

2 participants