# tj-actions/changed-files compromise printed CI secrets into GitHub Actions logs

Source: https://botpassword.com/incidents/2025-03-tj-actions-changed-files
Disclosed: 2025-03-14 · Type: Supply chain · Status: Resolved · Updated: 2026-10-25

In March 2025 an attacker repointed version tags of the popular GitHub Action `tj-actions/changed-files` to a malicious commit that read secrets out of the runner's memory and printed them, double base64-encoded, into workflow logs. CISA says `reviewdog/action-setup@v1` was compromised days earlier and may have enabled it. Any workflow that ran either action in the compromise window should treat every secret available to that job as exposed and rotate it.

Identifiers: CVE-2025-30066, CVE-2025-30154, GHSA-mrrh-fwg8-r2c3, GHSA-qmg3-hpqr-gqvc

## What was exposed

Every secret the GitHub Actions runner held for the job: repository and organization secrets, the job's `GITHUB_TOKEN`, cloud access keys, npm tokens, GitHub personal access tokens and private keys. CISA lists access keys, GitHub PATs, npm tokens and private RSA keys. StepSecurity said it saw no sign that the values were sent to a remote server; the exposure was through the build logs, so **public repositories with public logs** were at the highest risk because anyone could read and decode them.

## Who is affected

You are affected if any workflow in your organization ran `tj-actions/changed-files` between 2025-03-12 00:00 UTC and 2025-03-15 12:00 UTC (the window CISA gives), whatever tag you referenced, unless you pinned a known-good commit SHA. Workflows that ran `reviewdog/action-setup@v1`, or the reviewdog actions that embed it (`action-shellcheck`, `action-composite-template`, `action-staticcheck`, `action-ast-grep`, `action-typos`), on 2025-03-11 between 18:42 and 20:31 UTC are also affected. Search your workflow run logs from those windows for an unexpected base64 blob in the action's output.

## What to do

1. Search every repository's workflows for `tj-actions/changed-files` and the listed `reviewdog/*` actions, and list the runs inside the compromise windows.
2. Read those run logs. If a log contains a double base64-encoded blob, decode it to see which secret names were printed, then delete the log.
3. Rotate every secret that job could read, starting with cloud keys, npm and PyPI publish tokens and GitHub PATs. Treat them as compromised even if your repository is private.
4. Upgrade `tj-actions/changed-files` to v46.0.1 or later, and update any workflow that referenced the malicious commit SHA directly.
5. Pin third-party actions to a full commit SHA you have reviewed, rather than to a tag that can be moved.

## Keys to rotate

- [GitHub](https://botpassword.com/keys/github)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)
- [npm](https://botpassword.com/keys/npm)
- [PyPI](https://botpassword.com/keys/pypi)
- [Docker Hub](https://botpassword.com/keys/docker-hub)

## Timeline

- 2025-03-11: `reviewdog/action-setup@v1` is compromised between 18:42 and 20:31 UTC, according to its advisory. ([source](https://github.com/advisories/GHSA-qmg3-hpqr-gqvc))
- 2025-03-14: StepSecurity's Harden-Runner flags an unexpected outbound call from workflows using `tj-actions/changed-files` and publishes a warning. ([source](https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised))
- 2025-03-15: GitHub removes the action, then restores the repository with all versions cleaned. The advisory GHSA-mrrh-fwg8-r2c3 (CVE-2025-30066) is published, with v46.0.1 as the fixed release. ([source](https://github.com/advisories/GHSA-mrrh-fwg8-r2c3))
- 2025-03-18: CISA publishes an alert covering both actions and their compromise windows. ([source](https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction))
- 2025-03-24: CISA's Known Exploited Vulnerabilities catalog now lists both CVEs. NVD records CVE-2025-30066 as added on 18 March and CVE-2025-30154 on 24 March. ([source](https://nvd.nist.gov/vuln/detail/CVE-2025-30154))

## Indicators

- Malicious `tj-actions/changed-files` commit `0e58ed8671d6b60d0890c21b07f8835ace038e67`, to which tags were repointed (the advisory names v1.0.0, v35.7.7-sec and v44.5.1 among them).
- Malicious `reviewdog/action-setup` commit `f0d342d`; the fixed retag is `3f401fe`.
- An outbound request from the runner to `gist.githubusercontent.com` fetching a `memdump.py` script.

## Sources

- https://github.com/advisories/GHSA-mrrh-fwg8-r2c3
- https://github.com/advisories/GHSA-qmg3-hpqr-gqvc
- https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction
- https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
- https://nvd.nist.gov/vuln/detail/CVE-2025-30154
