Join our Newsletter — 33% off our NHI Course

tj-actions/changed-files breach: what CI/CD teams need to act on

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 21730
Topic starter  

TL;DR: A malicious version of tj-actions/changed-files ran for nearly 24 hours and put roughly 23,000 repositories at risk by leaking CI/CD secrets into workflow logs, according to Oasis Security. The breach shows that ephemeral build automation still depends on brittle trust assumptions around NHI credentials, commit integrity, and secret visibility.

Editorial analysis by NHI Mgmt Group, based on content published by Oasis Security: “tj-actions/changed-files GitHub Actions 3rd party vulnerability”.

Key questions

Q: What breaks when GitHub Actions workflows are allowed to access secrets without approval?

A: When workflow secret access is not gated, an attacker can turn the CI runner into the exfiltration tool.

Q: Why do GitHub Actions and GitLab CI/CD create different secrets risks?

A: GitHub Actions tends to fragment secrets across many repositories and environments, while GitLab CI/CD can cascade values through inheritance in ways that are harder to reason about.

Q: How do security teams know whether action pinning is enough protection?

A: Pinning is only a source-integrity control, so it is insufficient when the runtime environment still has excessive access.

Practitioner guidance

  • Map every workflow secret to a business owner Document which repository, action, or environment can read each secret and assign a human owner for rotation and revocation decisions.
  • Restrict third-party action permissions Limit job-level permissions, reduce secret exposure to only the steps that truly need them, and block broad default access to runner context.
  • Require signed commits for release paths Enforce commit signing on branches that can trigger build or deployment workflows so repository history cannot be silently rewritten.

Bottom line: The breach showed that CI/CD pipelines can leak non-human credentials during normal execution when a trusted action is poisoned.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 5 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 21566
 

CI/CD secret trust debt: This breach exposed how much pipeline security still depends on secrets being present, visible, and trustworthy at exactly the wrong time. GitHub Actions can protect storage and still fail at runtime, because the action itself receives the secrets needed to do its job. The practitioner conclusion is that pipeline governance must treat secret exposure during execution as the primary risk, not an edge case.

A question worth separating out:

Q: When should teams replace long-lived CI/CD secrets with short-lived tokens?

A: They should do so whenever the workflow needs cloud or deployment access that can be issued just for the job and then discarded. Short-lived tokens reduce the blast radius when an action or runner is compromised because there is less reusable credential value left behind. This is especially important for release and deployment pipelines.

👉 Read our full editorial: tj-actions/changed-files breach exposed CI/CD secret trust gaps


This post was modified 5 days ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.