Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

How do GitHub Actions become a supply-chain risk, and how do you mitigate it?

AdvancedConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer

Third-party actions run with your job's token and secrets, and tags like @v3 can be moved by a compromised maintainer.

  • Pin actions to a full commit SHA, with Dependabot to update them.
  • Set permissions: to least privilege (contents: read by default).
  • Avoid pull_request_target with checkout of untrusted code.
  • Never interpolate untrusted input (${{ github.event.issue.title }}) into run: scripts; pass via env.
  • Use OIDC to cloud instead of stored keys, and restrict which actions are allowed at org level.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning