A scanner that would have caught most of the Ultralytics attack
zizmor reads GitHub Actions YAML without running a job, making it an easy handover check in client repos, where workflows outlive the engagement.
In brief
- zizmor reads GitHub Actions workflows without running any code, and can audit repositories remotely when given a GitHub token.
- Grafana Labs runs zizmor on every repository but uses offline mode for pull requests, because online mode exhausts the API rate limit.
- The tool does not catch every flaw: for the vulnerability in the Ultralytics attack, it would have caught most of it.
In December 2024 a post on the blog yossarian.net re-examined the GitHub Actions workflow behind the Ultralytics attack. Its conclusion was blunt: zizmor would have caught the vulnerability, but only most of it. The same month, PyPI published its own analysis of the attack and pointed to zizmor as a way to draw up a list of where to start hardening workflows.
A security tool presented alongside what it misses earns more trust. For forward deployed engineers the point is close to daily work. You write pipelines to build, deploy and evaluate models in a client’s repository, then hand them over, and from then on those workflows run with the client’s tokens and secrets long after you have left the project.
That is why scanning workflows belongs on the handover checklist, right next to running the tests. The Thoughtworks Technology Radar, in its issue of November 4th 2026, placed zizmor in the Assess ring and said its teams had used it on client projects.
zizmor reads workflows, it does not run them
According to its PyPI page, zizmor is a static analysis tool for CI/CD, released under the MIT license. The official documentation lists the copyright as belonging to William Woodruff.
Static analysis means the tool reads YAML files and triggers no jobs. Inside a client’s environment that makes permission easier to get: you need no right to run pipelines, and there is no risk of setting off a deploy job by accident.
The quickest route is to install it from PyPI and point it at the workflow directory in a local clone:
pip install zizmor
zizmor .github/workflows/
zizmor can also audit a remote repository when you give it a GitHub token. The quickstart documentation uses the gh CLI to fetch one:
zizmor --gh-token=$(gh auth token) zizmorcore/zizmor
According to the usage guide, setting GH_TOKEN, GITHUB_TOKEN or ZIZMOR_GITHUB_TOKEN is enough to switch zizmor into online mode. That token belongs to the client’s environment, so agree with them who issues it, and for which repositories, before you run anything.
A harmless-looking workflow with four things to fix
Take a workflow that runs on pull requests and prints the PR title to the log to make debugging easier.
on: pull_request_target
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: echo "${{ github.event.pull_request.title }}"
The actions/checkout@v4 line breaks the unpinned-uses audit. By default that audit requires every repository to be pinned to a commit SHA; a tag such as v4 is not enough.
The run line passes the PR title, which an outsider writes, straight into a shell command. The checkout step, meanwhile, pulls the PR’s code into a high-privilege trigger. These are two places to inspect carefully yourself, whatever the tool reports.
As for permissions: write-all, it runs against GitHub’s own guidance, which says GITHUB_TOKEN should be granted only the minimum permissions it needs. The fixes: pin actions to a SHA, declare contents: read, pass the PR title through an environment variable instead of interpolating it directly, and reconsider whether pull_request_target is really needed.
Build it into the process so the flaws stay fixed
A one-off scan only tells you the state of things on the day. Thoughtworks says its teams run zizmor from the command line and also as a pre-commit hook, so flaws are blocked on the developer’s own machine.
Grafana Labs goes further, putting zizmor into the CI/CD pipeline of every repository. It runs offline mode for pull requests, however, because online mode exhausts the API rate limit. For a client with hundreds of repositories, the sensible split is offline mode for PRs and online mode for periodic scans.
One trap is worth knowing. When it outputs results as SARIF, zizmor does not use its exit code to signal findings, so the CI step will not fail just because problems were found. If the client wants to block merges, you need to add a separate check.
Do not let zizmor think for you
Since version 1.10.0, zizmor can fix some findings automatically. The key word is “some”. In a client’s repository, put automated fixes in a separate PR and read every line of the diff.
Its scope is also narrow. Thoughtworks notes that zizmor’s weakness is its lack of support for any CI platform other than GitHub Actions; a client on GitLab or Jenkins will need a different tool. Add the “most of it” verdict on Ultralytics, and the lesson is that a clean zizmor report does not mean a clean workflow.
If you are starting out, learn in this order. First, the GITHUB_TOKEN permission model and how the triggers differ. Next, how to read a finding and trace it back to the exact line of YAML. Only then, how to configure a pinning policy.
The skill also translates easily to a CV. A line such as “audited client CI workflows with zizmor, pinned every action to a SHA, cut token permissions to the minimum” shows an FDE hiring manager that the pipelines you leave behind stay safe once the client runs them alone.
Clients rarely remember who wrote the deploy workflow. If that workflow leaks a secret, they will remember for a long time.
Was this article useful?
Thanks for the feedback!
11 sources
- zizmor · PyPI
- zizmor documentation
- Quickstart - zizmor
- Usage - zizmor
- Audit Rules - zizmor
- Secure use reference - GitHub Docs
- How to detect vulnerable GitHub Actions at scale with Zizmor · 2025-06-27
- zizmor | Technology Radar | Thoughtworks · 2026-11-04
- Ultralytics attack analysis - The Python Package Index Blog · 2024-12-11
- zizmor would have caught the Ultralytics workflow vulnerability · 2024-12-06
- Integrations - zizmor