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.
More on Security: secrets, signing, access and supply chain
What are the first things you do when a secret is committed to a repo?BeginnerHow do you prevent secrets from entering the repo in the first place?IntermediateWalk through purging a leaked secret from a 5 GB repo with 200 contributors.AdvancedWhy use OIDC federation for cloud credentials from GitHub Actions instead of stored keys?IntermediateWhat is your policy on signed commits and how do you enforce it?IntermediateWhat do signed commits not protect against, and what supply chain controls complement them?Advanced