Deterministic Static Analysis · 32 Rules (GHA001–GHA032)

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.

Open Free 0-Upload Browser Scanner Get Solo CLI ($49 One-Time) Get Team Pack ($99 One-Time)

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
Mutable Git tags (@v4) or branches (@main, @master) can be force-pushed by an attacker after repository compromise, silently executing malicious code on every CI run (as exploited in CVE-2025-30066).
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)
Short commit hashes (7–39 hex characters) are not treated as immutable full-length SHAs by GitHub org SHA-pinning policies and are susceptible to prefix ambiguity.
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
Calling an external reusable workflow via a mutable ref (@main or @v1) delegates execution control and potentially secrets to mutable upstream YAML.
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
Referencing `uses: docker://...` or job `container:`/`services:` without an immutable `@sha256:` digest (or with `:latest`) allows silent upstream image replacement.
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
A bare 40-char SHA without an inline `# vX.Y.Z` comment obscures the pinned release during security audits and breaks Dependabot/Renovate version-aware updates.
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
Third-party actions outside verified namespaces (`actions/`, `github/`, local `./`) running inside jobs that hold write permissions or access repository secrets enlarge supply-chain blast radius.
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)
Detects vulnerable or compromised references to `tj-actions/changed-files` (CVE-2025-30066, CISA KEV) and `tj-actions/eslint-changed-files`, where mutable tags were retroactively repointed to dump CI runner memory and secrets.
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)
Detects unpinned or known-compromised references to `reviewdog/action-setup` (CVE-2025-30154) and related `reviewdog/action-*` tags chained in the March 2025 supply-chain attack.
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
Detects GhostAction-style secret exfiltration commands: outbound `curl`/`wget`/`nc` POSTing `secrets`, `env`, `printenv`, `GITHUB_TOKEN`, or double-base64 (`base64 | base64`) runner dumps to external endpoints.
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
Detects Shai-Hulud worm indicators: unattended self-hosted runner registration (`actions-runner`, `config.sh --unattended`, `svc.sh install`), known exfiltration sink domains (`webhook.site`, `oastify.com`, `interact.sh`, `pipedream.net`), or `shai-hulud` markers.
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)
Checking out `github.event.pull_request.head.*` inside a `pull_request_target` workflow executes attacker-controlled PR code with full repository write permissions and access to secrets.
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
`workflow_run` executes in the context of the default branch with secrets and write tokens; downloading artifacts produced by fork PRs and passing them to shell commands or eval enables RCE.
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
Interpolating attacker-controlled fields (`github.event.issue.title`, `pull_request.title`, `pull_request.body`, `comment.body`, `head_ref`, `commits.*.message`, `review.body`) directly inside `run:` allows arbitrary shell command injection.
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)
Writing untrusted or multiline input to `$GITHUB_ENV` (e.g. without a randomized heredoc delimiter) lets an attacker inject `NODE_OPTIONS`, `LD_PRELOAD`, or `BASH_ENV` into subsequent steps.
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)
Appending unverified or workspace-relative paths to `$GITHUB_PATH` enables binary shadowing of `git`, `node`, `curl`, or `npm` in subsequent steps.
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
Using `actions/cache` (or `cache: true`) on `pull_request_target` / `workflow_run` or with overly permissive `restore-keys` allows untrusted code to poison dependency caches used by default-branch builds.
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)
Without a top-level or job-level `permissions:` declaration, the workflow inherits repository/org defaults which may grant broad `write` scopes to `GITHUB_TOKEN`.
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
`permissions: write-all` gives every step and third-party action write access to repository contents, packages, workflows, deployments, and OIDC tokens.
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
Granting `contents: write`, `packages: write`, `actions: write`, `deployments: write`, or `security-events: write` on `pull_request` / `pull_request_target` / `issue_comment` amplifies any PR compromise.
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
By default, `actions/checkout` persists `GITHUB_TOKEN` in `.git/config`, allowing any subsequent build script, npm postinstall hook, or third-party action to read and abuse it.
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
`secrets: inherit` forwards every repository and organization secret to the called reusable workflow, violating least privilege and increasing lateral exfiltration impact.
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
Setting `id-token: write` at top-level allows every job (including lint/test jobs running third-party actions) to mint cloud OIDC JWTs and assume cloud IAM roles.
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
Long-lived static keys (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `GCP_SA_KEY`, `GOOGLE_CREDENTIALS`, `AZURE_CREDENTIALS`) persist after CI runs and are high-value targets for supply-chain worms.
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
Using `${{ secrets.* }}` directly inside a `run:` block exposes secrets to process argument tables (`ps`), shell trace (`set -x`), and accidental stdout/stderr leakage.
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)
Piping a remote URL directly into `sh`, `bash`, or `iex` executes unverified upstream code with no cryptographic checksum validation.
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
Running unpinned `npx <pkg>`, `npm install -g <pkg>`, `pip install <pkg>` (without `==` or `-r` lockfile), or `go install ...@latest` in CI pulls fresh upstream packages vulnerable to Shai-Hulud-style registry worms.
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
Self-hosted runners often retain filesystem state, internal VPC network access, and cloud metadata endpoints; running untrusted PR code on them enables persistent infrastructure compromise.
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
Jobs without `timeout-minutes` default to 360 minutes (6 hours), creating CI billing Denial-of-Wallet exposure and stalled runner queues.
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
Uploading `.`, `**/*`, `.git`, or `.env` with `actions/upload-artifact` (or retaining build artifacts for > 30 days) risks leaking credentials, `.git/config` tokens, and build secrets.
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
Production/deploy/release jobs without an `environment:` declaration bypass GitHub required reviewers, wait timers, and environment-scoped secrets required for SOC 2 CC8.1 change-control evidence.
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
Workflows publishing releases, npm packages, or container images without `actions/attest-build-provenance` or Cosign/SLSA attestation lack verifiable supply-chain provenance for EU CRA & SLSA v1.0.
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
Without a `concurrency:` block, rapid commits or concurrent deployments can race against each other, corrupting deployment state and wasting runner minutes.
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.