Fix tj-actions/changed-files (CVE-2025-30066) & reviewdog (CVE-2025-30154)
Detect compromised tj-actions/changed-files and reviewdog/action-setup IOCs,
replace mutable tags with native git diff or 40-char commit SHAs, and generate an offline hardening
patch directly in your browser—0 bytes uploaded.
0 bytes uploaded · 0 GitHub OAuth · One-time local CLI & SARIF pack via Polar.sh (no subscription).
.github/workflows/*.yml files here or paste YAML below to audit
for CVE-2025-30066, CVE-2025-30154, and unpinned tags locally.
Offline Hardened YAML Diff Preview
Vulnerable vs. Hardened Workflow (Exact Fix)
Both CVE-2025-30066 and CVE-2025-30154 succeeded because workflows referenced mutable tags (@v45,
@v1) that attackers silently repointed to secret-stealing commits. Replace
tj-actions/changed-files with native git diff and pin every remaining action to a full
40-hex commit SHA with an inline version comment.
name: Changed Files Lint
on:
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@0e58ed8671d6b60d0890c21b07f8835ace038e67
- uses: reviewdog/action-setup@v1
- run: echo "Changed files scanned"
name: Changed Files Lint
on:
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
persist-credentials: false
- name: Detect changed files natively via git diff
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: git diff --name-only "$BASE_SHA" HEAD
Compromised IOCs & Rules Checked Locally
| Rule | CVE / Indicator | Malicious Pattern Caught | Verified Remediation |
|---|---|---|---|
GHA007 |
CVE-2025-30066 (CISA KEV) | tj-actions/changed-files mutable tag, version < v46.0.1, or SHA 0e58ed8671d6b60d0890c21b07f8835ace038e67 |
Replace with native git diff --name-only or pin verified post-incident 40-char SHA; rotate all exposed CI secrets. |
GHA008 |
CVE-2025-30154 | reviewdog/action-setup@v1 mutable tag or compromised SHA 639252259a29368088446c50563930381228666a |
Pin to clean verified 40-char commit SHA, audit workflow logs, and rotate workflow tokens. |
GHA001 / GHA002 |
CWE-829 Unpinned / Truncated SHA | Any third-party uses: owner/repo@v4, @main, or short SHA (< 40 hex chars) |
Auto-pin with runnerproof-cli --fix --resolve-remote via local git ls-remote. |
GHA005 |
CWE-829 Maintainability | 40-char SHA without trailing # vX.Y.Z tag comment |
Keep trailing # v4.2.2 comment so Renovate/Dependabot can open cooldown-guarded PRs. |
Auto-Pin Every Repository Locally (No GitHub App OAuth)
Need to retro-scan dozens of private repositories and auto-pin every third-party action to exact 40-character
commit SHAs via local git ls-remote? Use the zero-dependency runnerproof-cli (one-time
payment, no recurring SaaS fees):
Frequently Asked Questions
What happened in CVE-2025-30066 (tj-actions/changed-files) and CVE-2025-30154 (reviewdog/action-setup)?
Attackers compromised upstream credentials in reviewdog/action-setup (CVE-2025-30154) and
pivoted to tj-actions/changed-files (CVE-2025-30066), force-pushing mutable tags to malicious
commits that dumped runner memory and CI secrets into workflow logs.
Is replacing tj-actions/changed-files with git diff --name-only safer than pinning it?
Yes. Eliminating unnecessary third-party actions removes the upstream compromise surface entirely. Where
third-party actions stay, pin every uses: line to a 40-character commit SHA with an inline tag
comment.
What must I rotate if my workflow ran the compromised commit?
Inspect Actions run logs for double-base64 output and immediately rotate every cloud credential, package registry token (npm, PyPI, Docker), GitHub PAT, and signing key accessible to the affected job.
Related GitHub Actions Remediation Guides
Script Injection Remediation
Fix ${{ github.event.* }} shell RCE (GHA013) and $GITHUB_ENV poisoning (GHA014) using safe env: bindings.
permissions: write-all Fix
Replace default or write-all GITHUB_TOKEN grants (GHA017–GHA020) with least-privilege permissions.
SOC 2 CC8.1 & EU CRA Guide
Build tamper-evident SHA-256 CI/CD audit evidence packs for SOC 2 CC8.1 and EU CRA Art. 14.