GH Security Alert: tj-actions/changed-files
π¨ GitHub Action Security Alert: tj-actions/changed-files
Compromised β What You Need to Do π¨β
What Happened?β
A popular GitHub Action called tj-actions/changed-files
has been hacked! This tool, used in over 23,000 projects, helps developers check which files were changed in a commit. But hackers secretly modified its code to steal sensitive information from workflows.
How Did It Work?β
The hacked version of tj-actions/changed-files
did something sneaky:
β
It grabbed secrets (like API keys, passwords, and tokens) from GitHub workflows.
β
It printed those secrets into the workflow logs.
β
If the logs were public, anyone could see and steal these secrets.
Why Is This Bad?β
π± If you use this action, your GitHub secrets might already be exposed.
π± Hackers could use stolen API keys or tokens to access your services, modify your code, or launch attacks.
π± Any public logs could be a goldmine for attackers.
How to Check if You're Affectedβ
π Go to your GitHub repository and check your workflows.
π Look for this line in your .github/workflows/*.yml
files:
- uses: tj-actions/changed-files@v*
π If you see it, you might be using the compromised version!
How to Fix It ASAP πβ
β
Step 1: Immediately replace tj-actions/changed-files
with this secure alternative:
- uses: step-security/changed-files@v*
β
Step 2: Check your GitHub workflow logs for any leaked secrets.
β
Step 3: If you suspect exposure, rotate (change) your API keys, tokens, and passwords right away.
How Was This Discovered?β
π A security tool called Harden-Runner from StepSecurity noticed unexpected network activity and flagged it. This helped security experts uncover the breach before more damage was done.
How to Stay Safe in the Futureβ
π Use security monitoring tools like StepSecurityβs Harden-Runner to detect threats early.
π Avoid using actions from unknown sourcesβstick to well-maintained and verified ones.
π Regularly audit your GitHub workflows for outdated or vulnerable actions.
Final Warning π¨β
This is a serious security issue, and you must take action immediately if you are using tj-actions/changed-files
. Hackers could already have your secretsβdonβt wait to fix this!
Share this with your team and other developers so they can secure their repositories too! π‘οΈ