Skip to content

v0.32.0

Latest

Choose a tag to compare

@tomersein tomersein released this 22 Nov 06:07
c3c651c

zanadir now recognises 53 more tools, most of them contributed by the community, and grades more honestly the tools that report without failing a build. 17 people contributed to this release: thank you!

Contributors

@jdotc1, @painbaba, @sarankumar1325, @PrathamShenoy14, @jay23606, @costajohnt, @dianatofficial, @AzalHoseinian, @Vamsi-2581, @amalsaidov, @mentallyunstable-lab, @wanjinhao1, @tridev-tej, @creamy-ghost, @mintmood, @jilsnshah and @RiccardoBifulco.

Want to be in the next one? Issues labelled good first issue each name a tool, the rule to copy and the tests to write.

Recognised tools

Category Added
Linter SQLFluff (#560, @AzalHoseinian); TypeScript type checking (#568), ty (#569) and typos (#582) (@painbaba); basedpyright and Pyrefly (#639, @wanjinhao1); lychee (#581), CSpell (#585), Taplo (#680) and StyLua (#686) (@sarankumar1325); Vulture (#600) and check-jsonschema (#668) (@dianatofficial); Knip (#601, @amalsaidov); HTMLHint (#609, @jay23606); markdown-link-check (#640) and the legacy Super-linter and MegaLinter names (#689) (@PrathamShenoy14); awesome_bot (#641, @tridev-tej); cargo-machete and cargo-udeps (#646, @creamy-ghost); terraform-docs (#670, @mintmood); interrogate (#681, @jilsnshah); scalafix (#687, @costajohnt)
Unit Tests helm-unittest (#561), Playwright Test (#562), Cypress (#563), Pester (#567) and gotestsum (#570) (@painbaba)
Coverage gcovr (#693, @RiccardoBifulco)
Performance Testing github-action-benchmark (#565) and Size Limit (#599) (@jay23606); grafana/run-k6-action (#586, @sarankumar1325)
License Compliance license-checker (#566, @jay23606)
Secrets Detection ripsecrets (#579), secretlint (#583), Talisman (#604) and Kingfisher (#621) (@jdotc1)
SAST njsscan (#587, @sarankumar1325); Sobelow (#642) and Opengrep (#623, landed as #644) (@jdotc1)
SCA cargo vet (#622, @jdotc1); blastradius (#651)
IaC Security kubeconform and kubeval (#597, @sarankumar1325); KubeLinter (#598) and Polaris (#669) (@jdotc1)
Workflow Security Harden-Runner (#564, @painbaba); ghalint (#575, @Vamsi-2581); pinact (#580, @jdotc1)
Supply Chain Gradle wrapper validation (#628, @jdotc1); lockfile-lint (#671, @PrathamShenoy14); npm provenance (#656); PyPI attestations and Sigstore signing (#665)
Agent Skill Security Stroq (#664)

Tools that pass whatever they find without a flag are graded by their flags. Sobelow is advisory without --exit, Polaris without --set-exit-code-on-danger, and pinact unless it runs with --check.

Changed grades

  • Tool forms that exit 0 on findings (#572). An audit of each rule against its tool's source found forms that report without failing:

    • zizmorcore/zizmor-action with its default advanced-security: true uploads SARIF and passes, so it's advisory now; set advanced-security: false to make it fail the job. zizmor's own --format sarif and --no-exit-codes are advisory too.
    • Also advisory: govulncheck's JSON and SARIF output, osv-scanner's reusable workflows with fail-on-vuln: false, buf-action with setup_only: true, SwiftLint's --fix/--lenient, and pre-commit run without --all-files.
    • dart analyze --no-fatal-warnings is partial, since errors still fail.

    If you use zizmor-action, expect Workflow Security to drop. This is the biggest change in this release.

  • Workflows disabled in GitHub's settings are advisory, because they never run on their own triggers (#573). Only --repo scans and the browser scan page can see this.

  • SCA names the ecosystems nothing checks (#574, @PrathamShenoy14). govulncheck alone in a repository with go.mod and requirements.txt is now partial, not enforcing. Two related fixes: a package-lock.json that installs from git or a tarball URL makes SCA partial (#645), and a pyproject.toml with nothing to install no longer counts as a Python ecosystem (#649).

  • CodeQL that analyses none of the repository's languages is partial (#666). For example, languages: actions on a Rust project.

  • Code scanning's default setup counts as CodeQL in --repo scans (#657). Before, it had no workflow file, so it read as no SAST.

  • Dependabot security updates enabled in settings count as SCA in --repo scans when there's no dependabot.yml (#684, @PrathamShenoy14).

  • A formatter run by its pre-commit hook counts as a check, because pre-commit fails a hook that changes a file (#692, @costajohnt).

  • A step is weakened only when every run of the tool in it is (#652). For example, if govulncheck ./...; then exit 0; fi; govulncheck -format json ./....

Fixed

  • Steps inside parallel: groups are read (#571). GitHub added these in June, and zanadir had skipped them.
  • A continue-on-error step whose failure a later step re-raises counts as enforcing (#577).
  • Trivy and Grype settings in env:, such as TRIVY_EXIT_CODE: 1, are read as flags are (#578).
  • npm-run-all --continue-on-error still fails the build, and is no longer read as || true (#625).
  • Shell scripts:
    • tools run inside $(...) are seen, and failures lost under set +e are caught (#629);
    • PowerShell backtick continuations and if (...) { exit 1 } are read (#627);
    • batch files (make.bat lint, call x.cmd) are followed like shell scripts (#667).
  • npx tool --version and other version or help checks through a package runner no longer count as a run (#608, @mentallyunstable-lab).
  • pre-commit's abbreviated flags, such as --all and -av, count as checking every file (#576).
  • False matches removed:
    • SonarQube for --sonarqube report formats and Gradle's -x sonarqube (#626);
    • Semgrep for its own rule tests and --validate (#653);
    • IaC Security for a code package named like an IaC directory (#650) and for Nuclei templates (#663).
  • Suggestions and fix (#699, @costajohnt):
    • the language is now detected from source files when there's no manifest;
    • a snippet that needs a manifest (go.mod for the Go tools, package.json for ESLint) is no longer handed out without one.

Claude Code plugin

  • A directory edition of the plugin, directory/zanadir, has been submitted to Anthropic's plugin directory (#700–#704). It holds only the skill, which runs the zanadir CLI with your approval.
  • The full plugin (zanadir@mustachecase) now has:
    • a README of what it runs, sends and fetches (#691);
    • a skill card and an NVIDIA SkillSpector scan in CI (#695);
    • a claude plugin eval suite (#696);
    • an icon (#698).

Grades

Compared with 0.31.0 on the workflow files of 736 popular repositories, scanned twice with the same results:

  • 255 changed:
    • 138 gained a category or a stronger grade. Most changes are Supply Chain (npm provenance, PyPI attestations; often unknown, because releases are started by hand) and Linter (TypeScript, typos, lychee, Playwright).
    • 90 list different tools with the same grades.
    • 27 lost something, 10 of them while gaining elsewhere. Each loss traces to a rule fix:
      • Workflow Security in 22, from zizmor-action's default (#572);
      • SAST in Stirling-PDF, whose SonarQube task is skipped with -x sonarqube (#626);
      • Secrets Detection in one repository that only downloads Gitleaks;
      • Linter in 3: transformers runs ruff under set +e (#629), grafana's buf-action runs with lint: false, and one runs flutter analyze --no-fatal-infos, now partial (#572).
  • 481 are unchanged.

Full changelog: 0.31.0...0.32.0