Interview Prep/CI/CD/Secrets, Supply Chain and DORA

Pipeline has `curl | sh` installers pulled at build time. Why is it risky, and what is the fix?

BeginnerScenarioSecrets, Supply Chain and DORA
Answer

Situation read → Unverified remote code execution.

What I'd do →

  1. Download a pinned version, verify its checksum or signature (sha256sum -c), and then install.
  2. Better, bake the tool into the build image.
  3. Mirror binaries in your artifact repo.

Why → The remote script can change at any moment.

Interview tip → Checksums pinned in Git give verifiable installs.

All CI/CD questions

More on Secrets, Supply Chain and DORA