zanadir is an open-source CI/CD security tool. It reads a repository's
pipeline, from GitHub Actions to GitLab CI, and reports which security and
quality checks are missing, or wired so they cannot fail a build.
What it answers
- What is my pipeline missing? Thirteen categories, from dependency
scanning and secrets detection to SBOMs, workflow hardening and agent
skill scanning, each
checked against the tools that cover it, with suggestions that fit the
repository's languages.
- Does my CI actually block on security findings? A scanner with
continue-on-error, || true, a push-only trigger or allow_failure, or
one that only reports unless told to fail, like trivy without
--exit-code 1, is present but cannot stop a merge. zanadir grades each
control enforcing, partial, advisory or unknown rather than just
covered; see Effectiveness.
- Is that check required to merge? With
--required-checks, a control
only counts as enforcing when branch protection or a ruleset requires it.
- What do I add?
zanadir fix prints ready-to-paste CI configuration for
the gaps, or writes a workflow with --write.
It reads GitHub Actions, GitLab CI, CircleCI, Bitbucket Pipelines, Azure
Pipelines and Jenkins, from a checkout (--dir) or straight from GitHub
(--repo), and reports as a table, JSON, SARIF or Markdown. To see it on a
public repository first, scan it in your browser.
For how it maps to the OWASP Top 10 CI/CD Security Risks, and how it differs
from OpenSSF Scorecard, see the mapping
and the comparison.
How common are these gaps? The State of CI security 2026
scanned 1,000 of the most-starred GitHub repositories: 511 declare no
dependency, secret or code scanning at all, and 1 in 6 of those that run a
scanner in CI have one that cannot fail the build.
zanadir scan --dir .
zanadir scan --repo github.com/owner/name --output json
zanadir fix --dir .
Installation
Try it on any public repository without installing anything, in your
browser at mustachecase.github.io/scan
(zanadir runs there as WebAssembly, and the repository's files never leave
your browser), or with Docker:
docker run --rm mustachecase/zanadir scan --repo github.com/owner/name
To install it, download the archive for Linux, macOS or Windows (amd64 or
arm64) from the latest release.
checksums.txt lists each archive's SHA-256, and every archive has a build
provenance attestation:
gh attestation verify zanadir_<version>_linux_amd64.tar.gz --repo MustacheCase/zanadir
Or with Homebrew (the tap is this repository) or Go:
brew tap --custom-remote MustacheCase/zanadir https://github.com/MustacheCase/zanadir.git
brew install mustachecase/zanadir/zanadir
go install github.com/MustacheCase/zanadir@latest
In GitHub Actions, use zanadir-action.
This workflow reports on every pull request without failing it:
# .github/workflows/zanadir.yml
name: zanadir
on: [pull_request]
permissions:
contents: read
jobs:
zanadir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mustachecase/[email protected]
with:
dir: .
When you are ready to gate, add enforce: true (fail on any uncovered
category), fail-on (only the categories you name) or fail-on-weakened. To
post the report as a pull request comment, see
Posting the report to a pull request.