zizmor

A CLI that statically checks GitHub Actions workflows for risky settings such as template injection and over-broad permissions. It runs offline unless a GitHub token is set.

cat zizmor/meta.ymlChecked on 2026-11-17

Safety

Impact Local onlyStays on your machine and sends nothing out
Admin rights
Not required
Test lab
Not required

Usage

Purpose
Defense
Difficulty
Intermediate
Type
Command line
Platforms
Linux / macOS / Windows / Docker

Trust

Repository
zizmorcore/zizmor
License
PermissiveMIT
GitHub
stars7,0692026-11-17
Maintenance
Actively updatedLast update 2026-11-17
Contents
  1. Introduction
  2. What zizmor does
  3. How it works (the attack and how to defend)
  4. Main audits
  5. Outbound connections
  6. Try it safely: check one local file offline
  7. Main uses
  8. Notes
  9. Read next
  10. Sources

zizmor is a command-line tool that statically analyzes GitHub Actions workflows and finds risky ways of writing them. It is written in Rust. The README says it also covers Dependabot configuration and pre-commit configuration. This review is based on the official documentation for the latest release, v1.32.0 (published 2026-11-02), checked on 2026-11-17.

This review is for people who want to protect the CI of their own repositories from input sent in from outside and from stolen permissions. After reading it, you can do the following:

  • Check a workflow on your own computer and read findings such as template injection, over-broad permissions, and actions referenced by tag
  • Explain the difference between offline checks and online checks that use the GitHub API (whether a token is needed, and what goes out over the network)
  • Fix the findings and add zizmor to CI or pre-commit

What zizmor does

  • Checks workflow and action definitions: It reads files such as .github/workflows/*.yml and action.yml and finds risky settings. The official documentation says it audits the definition files only, not the contents of other scripts that they call
  • Findings by audit name: Each finding carries the name of an audit. The v1.32.0 documentation lists 41 audits. The table below covers the main ones
  • Auto-fix: Some findings can be rewritten with --fix
  • Output formats: The default is a readable cargo-style format. JSON, SARIF, and GitHub annotations are also available
  • Sensitivity levels (personas): Besides the default regular, pedantic also reports code smells, and auditor reports everything, including likely false positives
What it doesn’t dozizmor is static analysis and does not execute code. The official documentation says it cannot analyze values that are only known at run time (for example, a matrix generated by an earlier job), and that in such cases it errs on the side of reporting more. It also does not look at other files that a workflow calls, such as shell scripts. No findings does not mean the workflow is safe.

How it works (the attack and how to defend)

Most of the problems zizmor finds are cases where a string or a permission that comes from outside is abused inside CI. MITRE ATT&CK T1677 (Poisoned Pipeline Execution) describes injecting malicious code into CI/CD processes. Its description gives the GitHub Actions pull_request_target trigger as an example of a pipeline that runs for pull requests from forks. It also describes cases where a pipeline trusts inputs such as branch names.

zizmor reads the workflow YAML and looks for these patterns.

  • Template injection (template-injection): ${{ ... }} expansion happens before the workflow and job run, and the result is placed verbatim into places such as run:. If you expand a value that an attacker controls, such as an issue title (github.event.issue.title), inside run:, it may be interpreted as shell code. The remediation in the official documentation is to put the value in an environment variable and let the shell expand it (${VARNAME}; ${{ env.VARNAME }} does not fix it)
  • Dangerous triggers (dangerous-triggers): pull_request_target, workflow_run, and issue_comment run in the context of the target repository, not the fork. The official documentation says the advice that these are safe as long as the PR’s code is not run is not true. It lists ways code can still run without executing the PR’s code directly, through argument injection and environment injection
  • Over-broad permissions (excessive-permissions): The default GITHUB_TOKEN permissions can be broad, so even a workflow that sets no permissions may give its jobs broad credentials. The fix is to set permissions: {} at the top of the workflow and add permissions only to the jobs that need them
  • Actions whose reference can move (unpinned-uses): An action referenced by tag or branch can be changed by the upstream repository. The official documentation recommends pinning by SHA (commit hash) when the upstream is not trusted. In the tj-actions/changed-files incident of March 2025 (CVE-2025-30066), according to the GitHub advisory, tags of several versions were retroactively changed to point to a malicious commit, and CI secrets appeared in workflow logs

On the detection side, the basic approach is to run zizmor on a workflow before it enters CI and to fix the findings before merging. The official documentation states that zizmor does not execute code.

Main audits

The names and meanings come from the official documentation, “Audit Rules” (v1.32.0). See the documentation for the full list.

Audit What it finds Works offline
template-injection Code injection through ${{ ... }} expansion Yes
dangerous-triggers Use of pull_request_target, workflow_run, and issue_comment (issue_comment since v1.31.0) Yes
excessive-permissions Over-broad permissions on workflows and jobs Yes
artipacked git credentials left on disk, and ways they can leak into artifacts Yes
unpinned-uses uses: that is not pinned by SHA. By default it requires SHA pinning for all actions (since v1.20.0; before that, actions/* and similar could stay tag-pinned) Yes
github-env Dangerous writes to GITHUB_ENV and GITHUB_PATH Yes
cache-poisoning Settings that lead to cache poisoning Yes
bot-conditions Bot conditions that can be spoofed Yes
secrets-inherit Excessive secret inheritance from a calling workflow to a reusable workflow Yes
hardcoded-container-credentials Docker credentials hardcoded in a workflow Yes
insecure-commands Settings that opt in to insecure workflow commands Yes
self-hosted-runner Use of self-hosted runners. Findings appear only with the auditor persona Yes
impostor-commit References to commits that exist only in the fork network, not in the target repository No
known-vulnerable-actions Actions with known vulnerabilities listed in GitHub Advisories No
ref-confusion References where a branch and a tag can be confused No
stale-action-refs References pinned by SHA where the SHA does not point to a Git tag No

The “Works offline” column copies the symbols in each audit’s table in the official documentation (Works offline). Among the audits in this table, the four marked “No” run in the online mode, which uses the GitHub API. The table of all audits in the official documentation also marks only these four as not working offline. In the source (v1.32.0), however, ref-version-mismatch, which is not in this table, is also not loaded when there is no token or when --no-online-audits is used (the documentation’s table says it works offline, so they disagree).

Outbound connections

There are three operating modes (Operating Modes in the official documentation).

  • Offline: It does not access the Internet, does not fetch remote repositories, and does not run audits that need online access
  • Online: It fetches remote repositories as needed and runs the audits that need online access
  • Online sans audits: It fetches remote repositories but skips the audits that need online access

The default mode is chosen from the environment. If ZIZMOR_OFFLINE is set, it runs offline. If any of GH_TOKEN, GITHUB_TOKEN, or ZIZMOR_GITHUB_TOKEN is set, it runs online (and if ZIZMOR_NO_ONLINE_AUDITS is also set, online without audits). If none of these is set, it runs offline. So without a token, the default is offline. On the command line, --offline makes this explicit, and passing --gh-token makes it online.

In the online mode, it uses the GitHub API. According to the official documentation, it uses it to fetch repository contents (the collection phase) and tag, branch, and commit history (the audit phase). The token normally needs no special permissions. It mainly authenticates requests to relax the rate limit. When you audit a private repository or an input that contains private references, you may need permissions (for GitHub Actions, contents: read and so on). The documentation strongly recommends that people using the GitHub CLI use gh auth token. For GitHub Enterprise, use --gh-hostname or GH_HOST.

The destinations are not only the “GitHub API” named in the official documentation. In the source (github.rs in v1.32.0), besides the API, it also connects to <host>/<owner>/<repo>.git/git-upload-pack (to fetch the repository’s Git refs; it sends the token) and to <host>/<owner>/<repo>/branch_commits/<sha>. The code comment calls the latter “undocumented”, and it sends no token. The host is the value of --gh-hostname or GH_HOST (github.com by default). Take these into account when you decide which hosts to allow on a firewall or proxy.

API responses are kept in a cache. By default, the cache directory is $XDG_CACHE_DIR on Linux and macOS (~/.cache/zizmor by default) and ~\AppData\Roaming\woodruffw\zizmor on Windows. You can change it with --cache-dir. The documentation warns that a cache can contain sensitive metadata, so you should not reuse it across machines or visibility boundaries.

Output always goes to standard output. With --fix, zizmor rewrites the input files in place (it does not work on remote inputs).

I found nothing in the official documentation or the README about sending usage data or checking for updates automatically. In the v1.32.0 source (crates/zizmor/src), the HTTP client library (reqwest) is used in github.rs and main.rs (in main.rs only in a comment).

Try it safely: check one local file offline

  1. Install it by one of the methods in the official documentation: Homebrew (brew install zizmor), PyPI (pip install zizmor, pipx, uv tool install zizmor), crates.io (cargo install --locked zizmor), Docker (ghcr.io/zizmorcore/zizmor:latest), and others. The official documentation says ordinary users should not use the binaries from GitHub Releases. Once it is installed, check it with zizmor -h.

  2. In a scratch folder, create a file ci.yml that is deliberately written in a risky way.

    on:
      issues:
        types: [opened]
    
    jobs:
      greet:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - run: echo "title is ${{ github.event.issue.title }}"
  3. Check it offline.

    zizmor --offline ci.yml
  4. Read the findings. Each finding shows the audit name in its heading (for example, template-injection). This example contains writing that matches the following audits described in the official documentation. Details of the output change between versions.

    • Expanding an issue title inside run: (template-injection)
    • Referencing actions/checkout by tag and not setting persist-credentials (unpinned-uses, artipacked)
    • Not setting permissions (excessive-permissions)
  5. Look at the exit code. If there are findings, it exits with 11 to 14 (11 for informational, 12 for low, 13 for medium, and 14 when the highest finding is high). With no findings, it exits with 0. If no inputs were found, it exits with 3.

  6. Try a fix. First make a copy of ci.yml. Running zizmor --fix ci.yml on the copy applies only the fixes classified as safe. --fix=all also includes fixes that a person needs to review. The official documentation cautions that fixes are applied in place, and that preserving the original formatting is best effort.

To check your own repository, you can pass the folder (zizmor .) or use zizmor --collect=workflows .. Since v1.32.0, when you pass a Git root, it collects only the files that GitHub Actions would actually use.

Main uses

Goal How
Check your own repository zizmor . (offline if there is no GitHub token)
Check workflows only zizmor --collect=workflows .
Stay fully offline --offline (it does not go online even if a token is in the environment)
Check another public repository zizmor owner/repo (online; a token is required)
Raise the sensitivity --persona=pedantic (--pedantic is the same) or --persona=auditor
Filter by severity --min-severity and --min-confidence
Add it to CI zizmorcore/zizmor-action, or set it up manually. SARIF output is available
Check before commit pre-commit (the hook is zizmorcore/zizmor-pre-commit)
Suppress a false positive A comment in the workflow, or rules.<id>.ignore in zizmor.yml
Turn off an audit rules.<id>.disable in zizmor.yml

With the SARIF format (--format=sarif), exit codes 11 and above are not used. The official documentation explains that SARIF consumers do not expect a non-zero exit except for an internal failure.

Notes

  • No findings is not proof of safety. It does not analyze values known only at run time or the contents of other scripts.
  • The default persona is limited to findings that deserve attention. Some audits, such as self-hosted-runner, report only with auditor. For reviews, try pedantic and auditor as well.
  • --fix rewrites files in place. Use it on a copy or where you can check a Git diff, and review the fixes from --fix=all by eye.
  • For unpinned-uses, the fix that pins by SHA may need a GitHub token and online access (official documentation; detection itself works offline).
  • When you use a token in the online mode, use one that has only the permissions needed. Follow the official documentation’s warning about the cache as well.
  • The license is MIT. The copyright line in LICENSE names an individual, William Woodruff, while the owner on GitHub is the organization zizmorcore.
  • Supported OSes: the installation documentation has installation methods for Linux, macOS, and Windows, and the Releases binaries are Linux (x86_64, aarch64), macOS (x86_64, aarch64), and Windows (x86_64). I found no statement in the installation documentation that administrator privileges are required (if you install into a system location, that OS’s permissions apply).
  • As of 2026-11-17, this review did not run zizmor. The example output and the audit behavior are based on the official documentation.

Sources

  1. Official repository (zizmorcore/zizmor README)github.com/zizmorcore/zizmor
  2. LICENSE (MIT)github.com/zizmorcore/zizmor/blob/main/LICENSE
  3. Official docs: Audit Rulesdocs.zizmor.sh/audits/
  4. Official docs: Usage (operating modes, output, exit codes, personas, auto-fix)docs.zizmor.sh/usage/
  5. Official docs: Installationdocs.zizmor.sh/installation/
  6. Official docs: Integrations (GitHub Actions, pre-commit)docs.zizmor.sh/integrations/
  7. Releases (v1.32.0 and binaries)github.com/zizmorcore/zizmor/releases
  8. MITRE ATT&CK T1677 Poisoned Pipeline Executionattack.mitre.org/techniques/T1677/
  9. GitHub Advisory GHSA-mrrh-fwg8-r2c3 (tj-actions/changed-files, CVE-2025-30066)github.com/advisories/GHSA-mrrh-fwg8-r2c3

Checked on 2026-11-17

Similar tools

Gitleaks

Impact Local only
gitleaks/gitleaks

A command-line tool that finds passwords, API keys, and tokens that have slipped into Git repositories and files.

Purpose
Defense
Type
Command line
Difficulty
Beginner
License
PermissiveMIT
Category
Vulnerability scanning
Actively updatedstars31,101Last update 2026-10-28
Read the Gitleaks review

Semgrep

Impact Local only
semgrep/semgrep

A static analysis tool that checks source code against rules written in a code-like syntax. You can write your own rule to find risky patterns.

Purpose
Defense
Type
Command line
Difficulty
Intermediate
License
CopyleftLGPL-2.1(エンジン)。公式ルールは Semgrep Rules License v1.0
Category
AppSec and DevSecOps
Actively updatedstars17,753Last update 2026-11-17
Read the Semgrep review

ShellCheck

Impact Local only
koalaman/shellcheck

A static analysis tool that reads sh and bash scripts without running them and points out common mistakes such as missing quotes and dangerous patterns.

Purpose
Defense
Type
Command line
Difficulty
Beginner
License
CopyleftGPL-3.0
Category
AppSec and DevSecOps
Actively updatedstars40,354Last update 2026-11-09
Read the ShellCheck review

TruffleHog

Impact Reaches others
trufflesecurity/trufflehog

A scanner that finds leaked API keys and passwords in Git history, files, cloud storage, and more. It can also check whether a key it finds still works.

Purpose
Defense
Type
Command line
Difficulty
Beginner
License
CopyleftAGPL-3.0
Category
Vulnerability scanning / AppSec and DevSecOps
Actively updatedstars29,439Last update 2026-11-16
Read the TruffleHog review