Interview Prep/CI/CD/Supply Chain and Pipeline Security

What are the risks of using `curl | bash` installers and unpinned tools inside pipelines?

BeginnerProductionSupply Chain and Pipeline Security
Answer

The script can change at any time or be served by a compromised host, and it runs with the pipeline's credentials (as in the Codecov bash uploader compromise in 2021, which exfiltrated CI environment variables). Download pinned versions, verify checksums or signatures, use trusted package managers or pinned container images for tools, and prefer maintained actions pinned by SHA.

curl -fsSLo tool.tgz https://example.com/tool-1.8.2-linux-amd64.tgz
echo "<sha256>  tool.tgz" | sha256sum -c -
All CI/CD questions

More on Supply Chain and Pipeline Security