GitHub Actions Security Scanner — Full 32-Rule Reference
Every rule below executes deterministically on your workflow YAML AST with 0 bytes uploaded and 0 GitHub App OAuth. Each finding maps directly to CWE, EU CRA Art. 14, SOC 2 CC8.1, SLSA v1.0, and ISO 27001 A.8.25–A.8.32.
Complete 32-Rule Catalog (GHA001–GHA032)
| Rule | Severity | Vulnerability & Description | CWE | Compliance Controls | Remediation |
|---|---|---|---|---|---|
GHA001 |
error | Third-party action not pinned to a full 40-char commit SHA |
CWE-829 |
EU CRA Art. 14, SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.25 | Pin every third-party action to an immutable 40-character hexadecimal commit SHA with a version comment (e.g., uses: actions/checkout@<40-hex-sha> # v4.2.2). |
GHA002 |
error | Action pinned to a truncated commit SHA (< 40 hex chars) |
CWE-829 |
SLSA v1.0, SOC 2 CC8.1, ISO 27001 A.8.25 | Replace the short hash with the full 40-character hexadecimal Git commit SHA. |
GHA003 |
error | Reusable workflow not pinned to a full 40-char commit SHA |
CWE-829 |
EU CRA Art. 14, SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.32 | Pin external reusable workflows (`owner/repo/.github/workflows/file.yml@<40-hex-sha>`) to a full 40-character commit SHA. |
GHA004 |
error | Docker action or job container uses mutable image tag |
CWE-829 |
SLSA v1.0, SOC 2 CC8.1, ISO 27001 A.8.25 | Pin container images by immutable SHA-256 digest (e.g., `image: node:22-alpine@sha256:<64-hex>`). |
GHA005 |
warning | Pinned commit SHA missing human-readable version tag comment |
CWE-829 |
SOC 2 CC8.1, ISO 27001 A.8.32 | Append an inline version comment next to the SHA (e.g., `uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2`). |
GHA006 |
warning | Unverified third-party action runs in job with write permissions or secrets |
CWE-829 |
EU CRA Art. 14, SOC 2 CC6.8, SLSA v1.0 | Isolate third-party actions into a separate read-only job with zero secrets, or replace them with minimal audited shell steps. |
GHA007 |
error | Known compromised tj-actions/changed-files IOC (CVE-2025-30066) |
CWE-506 |
EU CRA Art. 14, SOC 2 CC6.8, SOC 2 CC8.1, ISO 27001 A.8.25 | Remove `tj-actions/changed-files` (replace with native `git diff --name-only`) or pin strictly to a verified post-incident commit SHA >= v46.0.1, and rotate all CI secrets exposed during the compromise window. |
GHA008 |
error | Known compromised reviewdog/action-setup IOC (CVE-2025-30154) |
CWE-506 |
EU CRA Art. 14, SOC 2 CC6.8, SOC 2 CC8.1, ISO 27001 A.8.25 | Pin `reviewdog/action-setup` to an audited clean 40-char commit SHA (not `@v1` or compromised SHA `639252259a29368088446c50563930381228666a`) and rotate any tokens present in affected workflows. |
GHA009 |
error | GhostAction / CI secret exfiltration pattern detected |
CWE-506 |
EU CRA Art. 14, SOC 2 CC6.8, ISO 27001 A.8.25 | Immediately remove the suspicious exfiltration step, audit Git history and PATs for unauthorized workflow commits, and rotate all repository/organization secrets. |
GHA010 |
error | Shai-Hulud / malicious persistent runner or webhook C2 IOC |
CWE-506 |
EU CRA Art. 14, SOC 2 CC6.8, ISO 27001 A.8.25 | Quarantine the workflow immediately, revoke all GitHub PATs and runner registration tokens, inspect npm/PyPI dependencies for worm infection, and trigger EU CRA Art. 14 incident triage if active exploitation occurred. |
GHA011 |
error | pull_request_target combined with untrusted PR head checkout (Pwn Request RCE) |
CWE-94 |
EU CRA Art. 14, SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.25 | Switch to `pull_request` (unprivileged) or split into a read-only build workflow and a separate privileged `workflow_run` workflow that never executes untrusted PR code. |
GHA012 |
error | Privileged workflow_run downloads or executes untrusted workflow artifacts |
CWE-94 |
SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.25 | Treat all artifacts downloaded in `workflow_run` as untrusted data: never execute scripts or binaries from them, strictly validate JSON/numeric outputs, and minimize token permissions. |
GHA013 |
error | Script injection via untrusted GitHub context expression in run step |
CWE-78 |
EU CRA Art. 14, SOC 2 CC8.1, ISO 27001 A.8.25 | Pass the expression through an intermediate step `env:` variable (e.g., `PR_TITLE: ${{ github.event.pull_request.title }}`) and reference it double-quoted as `"$PR_TITLE"` in the shell. |
GHA014 |
error | Unvalidated write to $GITHUB_ENV (environment variable poisoning) |
CWE-74 |
SOC 2 CC8.1, ISO 27001 A.8.25 | Never write untrusted PR/issue data to `$GITHUB_ENV`; when writing dynamic values, use a unique random delimiter (`EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)`) and allowlist variable names. |
GHA015 |
error | Unvalidated write to $GITHUB_PATH (PATH hijacking) |
CWE-426 |
SOC 2 CC8.1, ISO 27001 A.8.25 | Only prepend verified absolute directories owned by root/runner to `$GITHUB_PATH`, never untrusted expressions or PR workspace paths. |
GHA016 |
warning | GitHub Actions cache poisoning risk on privileged or untrusted trigger |
CWE-494 |
SLSA v1.0, SOC 2 CC8.1, ISO 27001 A.8.25 | Disable cache writes on untrusted PR contexts (`actions/cache/restore` read-only) and key caches strictly on lockfile hashes (`hashFiles('**/package-lock.json')`). |
GHA017 |
error | Missing explicit permissions block (default GITHUB_TOKEN blast radius) |
CWE-250 |
SOC 2 CC6.8, SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.25 | Declare `permissions: {}` or `permissions: { contents: read }` at workflow top-level and grant narrower write scopes only on the specific job that requires them. |
GHA018 |
error | Overly broad permissions: write-all granted to workflow or job |
CWE-250 |
SOC 2 CC6.8, SOC 2 CC8.1, SLSA v1.0, ISO 27001 A.8.25 | Replace `permissions: write-all` with least-privilege explicit scopes (e.g., `contents: read`). |
GHA019 |
error | High-risk write permission granted on untrusted pull request trigger |
CWE-269 |
SOC 2 CC6.8, SOC 2 CC8.1, ISO 27001 A.8.25 | Restrict PR workflows to `contents: read` (and `pull-requests: write` only in an isolated comment job that does not execute PR code). |
GHA020 |
warning | actions/checkout does not set persist-credentials: false |
CWE-522 |
SOC 2 CC6.8, SLSA v1.0, ISO 27001 A.8.25 | Add `with: { persist-credentials: false }` to every `actions/checkout` step that does not explicitly push back to Git. |
GHA021 |
error | secrets: inherit passed to reusable workflow |
CWE-200 |
SOC 2 CC6.8, ISO 27001 A.8.25, ISO 27001 A.8.32 | Replace `secrets: inherit` with explicit key-by-key secret mapping (`secrets: { DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} }`). |
GHA022 |
warning | id-token: write granted globally at workflow top-level |
CWE-269 |
SOC 2 CC6.8, SLSA v1.0, ISO 27001 A.8.25 | Remove `id-token: write` from top-level `permissions:` and grant it exclusively inside the isolated production deploy or provenance attestation job. |
GHA023 |
warning | Static long-lived cloud credentials used instead of OIDC |
CWE-798 |
SOC 2 CC6.8, ISO 27001 A.8.25 | Migrate to short-lived GitHub OIDC federation (`id-token: write` scoped to the deploy job + `role-to-assume` / Workload Identity Federation). |
GHA024 |
error | Secret interpolated directly in shell run command or logged output |
CWE-532 |
SOC 2 CC6.8, EU CRA Art. 14, ISO 27001 A.8.25 | Bind the secret via a step-level `env:` variable (`API_KEY: ${{ secrets.API_KEY }}`) and pass it via environment or stdin rather than inline CLI flags or `echo`. |
GHA025 |
error | Unverified remote script piped directly to shell (curl/wget | sh) |
CWE-829 |
EU CRA Art. 14, SLSA v1.0, ISO 27001 A.8.25 | Download the artifact to a file, verify its expected SHA-256 checksum (`sha256sum -c`), and only then execute it. |
GHA026 |
warning | Unpinned package manager execution in CI step |
CWE-829 |
EU CRA Art. 14, SLSA v1.0, SOC 2 CC8.1 | Pin exact versions (`pkg@1.2.3`, `pkg==1.2.3`), use `npm ci --ignore-scripts` / lockfiles, and enforce a package cooldown (`minimumReleaseAge`). |
GHA027 |
error | Self-hosted runner exposed to untrusted pull request trigger |
CWE-250 |
SOC 2 CC6.8, SOC 2 CC8.1, ISO 27001 A.8.25 | Use ephemeral GitHub-hosted runners (`ubuntu-latest`) for PR workflows, or isolate self-hosted runners behind strict ephemeral VMs only on protected default-branch builds. |
GHA028 |
warning | Job missing explicit timeout-minutes limit |
CWE-400 |
SOC 2 CC8.1, ISO 27001 A.8.32 | Set a tight `timeout-minutes:` (e.g., `timeout-minutes: 15`) on every job. |
GHA029 |
warning | Overly broad or sensitive artifact upload path / excessive retention |
CWE-200 |
SOC 2 CC6.8, ISO 27001 A.8.25 | Restrict `path:` to an explicit build output directory (e.g., `dist/`), set `include-hidden-files: false`, and cap `retention-days: 7`. |
GHA030 |
warning | Deployment or release job missing GitHub environment protection gate |
CWE-269 |
SOC 2 CC8.1, ISO 27001 A.8.32 | Attach `environment: production` (configured with required reviewers and protected branch deployment rules) to deployment and release jobs. |
GHA031 |
warning | Release/publish workflow missing SLSA build provenance attestation |
CWE-345 |
SLSA v1.0, EU CRA Art. 14, SOC 2 CC8.1 | Add `actions/attest-build-provenance` (pinned to a 40-char SHA) with `attestations: write` and `id-token: write` scoped to the release job. |
GHA032 |
info | Workflow missing concurrency group guard |
CWE-693 |
SOC 2 CC8.1, ISO 27001 A.8.32 | Add a `concurrency:` group (e.g., `group: ${{ github.workflow }}-${{ github.ref }}` with `cancel-in-progress: true` for PR/CI jobs and `false` for production deploys). |
Frequently Asked Questions
Does RunnerProof upload my private workflows?
No. Scanning runs 100% client-side in your browser or locally via runnerproof-cli. Verify 0 outbound requests in Chrome/Firefox DevTools.
How does RunnerProof compare to zizmor and pinact?
zizmor (Rust) and pinact (Go) are great free open-source CLIs. RunnerProof adds instant zero-install browser triage, built-in 2025–2026 IOC rules (GHA007–GHA010), a zero-dependency Node CLI, and ready-to-submit SOC 2 / EU CRA auditor dossiers with MANIFEST.sha256.