Interview Prep/Git & GitHub/Security: secrets, signing, access and supply chain

What does a software supply chain attack on a Git-based pipeline look like and how do you reduce blast radius?

AdvancedProductionSecurity: secrets, signing, access and supply chain
Answer

Typical paths: malicious dependency, compromised GitHub Action, stolen PAT, poisoned cache and injected workflow input. Reduce blast radius with pinned versions and lockfiles, minimal job permissions, environment-scoped secrets with reviewers, OIDC instead of keys, ephemeral runners, egress restrictions (Harden-Runner), no cache sharing across trust levels, and artifact attestations that deployments verify.

All Git & GitHub questions Roadmap: Git & GitHub

More on Security: secrets, signing, access and supply chain