Interview Prep/DevSecOps/Supply chain: signing, SBOM and dependencies

A third-party GitHub Action you use was compromised and printed secrets into public logs

AdvancedTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → Actions referenced by mutable tag (@v1), and the attacker repointed tags to malicious code, as in the tj-actions/changed-files incident (2025).

Diagnose →

grep -rn "uses: .*@v" .github/workflows/
gh run list --workflow ci.yml --limit 50   # runs in the exposure window

Download logs and search for base64 blobs.

Fix → Rotate every secret available to affected workflows, delete exposed logs, pin to a known-good SHA or replace the action.

Prevent → SHA pinning, minimal permissions:, secrets scoped to environments with required reviewers, and egress monitoring on runners (e.g. Harden-Runner).

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies