How do you secure the software supply chain from commit to production?

AdvancedScenarioPipelines at scale
Answer

Situation read → Attackers now target the pipeline itself: dependencies, actions, runners and credentials. You need integrity at every hop, and proof of it.

What I'd do →

  1. Source: branch protection, required reviews, signed commits for sensitive repos, CODEOWNERS on pipeline files.
  2. Dependencies: lockfiles, Renovate updates, SCA scanning, and a private proxy (Artifactory, CodeArtifact) so builds don't pull straight from the internet.
  3. Build: ephemeral runners, actions pinned to SHAs, minimal permissions:, OIDC instead of stored cloud keys.
  4. Artifact: generate an SBOM and SLSA provenance, sign with Cosign.
permissions:
  contents: read
  id-token: write
  attestations: write
steps:
  - uses: actions/attest-build-provenance@v2
    with:
      subject-name: ${{ env.ECR }}/api
      subject-digest: ${{ steps.build.outputs.digest }}
  1. Deploy: admission control verifies the signature and provenance; deploy by digest.
  2. Run: runtime detection and continuous image rescanning.

Why → Each control covers a different attack; provenance links the running image back to a reviewed commit.

Interview tip → Reference SLSA levels and say which level you've reached; honesty about maturity scores well.

All Real-World Interview questions Roadmap: Interview readiness

More on Pipelines at scale