You learn that a popular third-party GitHub Action used in your workflows was compromised and printed CI secrets into public build logs.
Likely causes → Supply-chain attack: the attacker moved an existing version tag (for example v4) to a malicious commit. Every workflow referencing the action by tag ran the new code with access to the job's secrets. This is what happened with tj-actions/changed-files in March 2025.
Diagnose →
gh search code --owner $ORG 'uses: tj-actions/changed-files' --json repository,path
gh run list -R $ORG/app --created ">=2025-03-14" --json databaseId,headBranch,conclusion
Search affected run logs for encoded secret blobs, and check cloud audit logs for use of the exposed credentials.
Fix → Remove or pin the action to a known-good commit SHA, rotate every secret those workflows could reach (cloud keys, registry tokens, GITHUB_TOKEN scopes, npm tokens), delete affected logs, and review audit logs for misuse.
Prevent → Pin third-party actions by full commit SHA (Dependabot can update them), allow-list actions at the org level, give GITHUB_TOKEN minimal permissions:, and use OIDC instead of long-lived cloud keys.