Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How do you find security issues in GitHub…
Cyber Security

How do you find security issues in GitHub Actions workflows with zizmor?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Cyber Security

Find security issues in GitHub Actions workflows by running zizmor against the workflow files and reviewing the reported risky patterns, such as unsafe trigger use, weak permissions, and untrusted input handling. Triage each finding against the workflow’s trust model, then fix the workflow or tighten permissions before it runs in production repositories.

What zizmor is looking for in a workflow

zizmor is most useful when you treat it as a workflow security reviewer, not a generic linter. It inspects the YAML for patterns that expand trust unexpectedly, such as broad trigger conditions, overbroad token permissions, risky use of untrusted event data, and workflow steps that can be steered by repository content or pull request inputs.

That makes the unit of review the workflow’s trust boundary, not just the syntax. A finding matters when it changes who can trigger the job, what the job can access, or whether attacker-controlled input can influence execution.

For teams that want a broader GitHub Actions hardening baseline, the GitHub and GitHub Actions Security Guide covers the surrounding controls that make zizmor findings easier to interpret and fix.

How to triage findings without overreacting

Not every warning is equally urgent. A good triage pass asks whether the workflow runs on protected branches, whether it can reach production secrets, whether the action is pinned and trusted, and whether the input path is attacker-influenced. Findings become high priority when a low-trust event can reach a high-value secret or deployment path.

Where a finding is about a public pull request, a fork, or other untrusted source, assume the workflow is hostile until proven otherwise. Where the workflow already uses strict permissions and narrow triggers, the same finding may be a low-risk hygiene issue rather than an immediate exposure.

If you want concrete examples of how a small workflow mistake turns into secret exposure, the GhostAction campaign 2025 and tj-actions/changed-files compromise 2025 show why apparently routine workflow paths deserve careful review.

What to fix first in a risky workflow

Start with the changes that reduce blast radius fastest: narrow the trigger, reduce token permissions, and remove any step that consumes untrusted data in a privileged context. Then review third-party actions, pin them to immutable references, and separate build-time jobs from release or deployment jobs so the same workflow does not both ingest outside input and handle sensitive credentials.

When zizmor flags something that touches secrets, release automation, or self-hosted runners, the right fix is usually structural rather than cosmetic. The goal is to make the dangerous path impossible, not merely less obvious in the YAML.

When you need a deeper model for these decisions, the CI/CD Pipeline Identity Security Guide is the best companion for understanding where workflow permissions, OIDC federation, and publishing tokens change the risk profile.

Risk and Threat Considerations

GitHub Actions workflows are attractive because they often sit close to source code, CI secrets, and deployment credentials. A weak trigger or permissive job token can let untrusted code influence a trusted pipeline, which turns a routine automation path into a secret-exposure and supply-chain risk.

Failure mechanism: An attacker exploits workflow trust assumptions, such as permissive pull request handling, unsafe context interpolation, or overbroad permissions, to run code or read secrets in a job that was meant to be restricted.

Impact: The result can be leaked credentials, malicious releases, tampered build artifacts, or lateral movement into package, cloud, or production systems if the workflow had privileged access.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and SLSA set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API8 — Security MisconfigurationWorkflow permission and trigger mistakes create exposed trust boundaries.
Recommendation — Tighten workflow permissions and triggers to remove exposed execution paths.
NIST SP 800-53 Rev 5AC-6 — Least Privilegezizmor findings often point to excessive workflow permissions and token scope.
IA-5 — Authenticator ManagementWorkflow secrets and tokens must be rotated and controlled when exposure is possible.
Recommendation — Reduce job and token privileges to the minimum required for each workflow. Rotate and manage workflow credentials when a finding suggests secret exposure.
SLSABuild ProvenancePinned actions and trusted workflow paths are core to build provenance and supply-chain integrity.
Recommendation — Pin workflow dependencies and preserve provenance for build and release jobs.

Practitioner Guidance

What to verify: Check whether each zizmor finding is reachable from an untrusted event path and whether the workflow can touch production-scoped secrets, deployment tokens, or release automation. If yes, treat the issue as a real exposure even if no abuse has been observed.

Decision rule: If the finding affects trigger scope, token scope, or untrusted input handling, fix the workflow before merging; if it only flags a low-impact pattern in a non-privileged job, track it as hardening debt and verify it cannot grow into a sensitive path later.

Practitioner takeaway: zizmor is most valuable when you use it to reason about trust boundaries, not just code style, because the dangerous cases are the ones where attacker-controlled input reaches a privileged workflow step.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org