Interview Prep/GitHub Actions/Security Hardening & Supply Chain

A popular action you use was compromised and its tags repointed. What do you do in the first hour?

AdvancedScenarioSecurity Hardening & Supply Chain
Answer

Situation read → Supply-chain incident; assume secrets in affected runs leaked.

What I'd do →

  1. Find usage org-wide: code search org:devopsshack "tj-actions/changed-files" and list runs in the exposure window.
  2. Block the action at org level (allowed actions policy) to stop new runs.
  3. Rotate every secret available to affected workflows; check logs of public repos for dumped secrets and delete those runs.
  4. Replace with a pinned safe SHA or an alternative.
  5. Enforce SHA pinning org-wide afterwards.

Why → Blocking stops the bleed, rotation removes the impact, pinning prevents recurrence.

Interview tip → Speak in time order: contain, rotate, eradicate, prevent.

All GitHub Actions questions Roadmap: GitHub Actions

More on Security Hardening & Supply Chain