tj-actions/changed-files GitHub Action leaked CI secrets into workflow logs
A popular GitHub Action printed CI secrets into build logs.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
A hijacked GitHub Action dumped CI secrets into logs. GitHub's advisory for CVE-2025-30066 says attackers retroactively pointed version tags of tj-actions/changed-files at a malicious commit (0e58ed8) that downloaded a Python script, read secrets from the GitHub Actions Runner Worker process memory and printed them, double base64-encoded, in the workflow logs. Logs of public repositories are public, so those secrets were exposed to anyone; the advisory says organizations with public repositories are at the highest risk. CISA says the exposed secrets include access keys, GitHub personal access tokens, npm tokens and private RSA keys. The fix is v46.0.1. Wiz assesses that the earlier reviewdog/action-setup compromise likely led to theft of the tj-actions bot's personal access token; this is Wiz's assessment, not a confirmed finding.
- Exposure starts
- 2025-03-12
- Exposure ends
- 2025-03-15
- Confidence
- medium
- Scope
- every secret available to a GitHub Actions workflow that ran tj-actions/changed-files in the window, readable in its logs when the repository's logs are public
What to do, in this order
- Find workflow runs that used tj-actions/changed-files from 2025-03-12 to 2025-03-15 and read their logs for double base64-encoded output
CISA and GitHub both say to audit those runs first; the leaked secrets are in the changed-files step output.
- GitHub personal access tokens and npm tokens used by those workflows
CISA names GitHub personal access tokens and npm tokens among the exposed secrets; a leaked PAT can push code and a leaked npm token can publish packages.
github_pat, npm_token
- Private keys, cloud access keys and every other secret those workflows could read
CISA names access keys and private RSA keys, and says to treat every identified secret as compromised and rotate it immediately; GitHub says to rotate secrets possibly exposed in the window as a precaution.
private_key, anything else stored there
- Upgrade to v46.0.1 and replace any reference to the malicious commit
GitHub's advisory says workflows pinned to the malicious commit SHA must be updated immediately.
- Pin third-party actions to full commit SHAs
The attack worked by moving existing version tags to a malicious commit, which a tag reference follows.
Notes
- CISA's audit window is 2025-03-12 00:00 to 2025-03-15 12:00 UTC; the GitHub advisory says the vulnerability was active between 2025-03-14 and 2025-03-15. Wiz reports a Coinbase-targeted variant committed to tj-actions/changed-files on 2025-03-13. The wider CISA window is used here.
- GitHub Actions is not a package ecosystem in this schema, so the affected action is listed in indicators, not packages. OSV records versions before 46.0.1 as affected.
How to tell if you’re affected
- tj-actions/changed-files run between 2025-03-12 and 2025-03-15 (tags v1 through v45.0.7)
- A workflow pinned to commit 0e58ed8 of tj-actions/changed-files
- Double base64-encoded text in the changed-files step output of a workflow log
- Outbound request from a runner to gist.githubusercontent.com fetching memdump.py
Sources
- GitHub advisory GHSA-mrrh-fwg8-r2c3: tj-actions/changed-files (CVE-2025-30066)
- CISA: Supply chain compromise of third-party tj-actions/changed-files (CVE-2025-30066) and reviewdog/action-setup@v1 (CVE-2025-30154)
- OSV: GHSA-mrrh-fwg8-r2c3
- Wiz: New GitHub Action supply chain attack, reviewdog/action-setup
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.