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 -
More on Supply Chain and Pipeline Security
What is a software supply chain attack, and where does the pipeline fit?BeginnerWhat is an SBOM and why do you generate one in CI?BeginnerHow do you sign container images and verify them at deploy time?IntermediateWhat is SLSA and which level should a typical team aim for?IntermediateHow do you verify provenance before deploying?AdvancedHow do you scan images and dependencies in the pipeline without drowning in noise?Intermediate