Secrets are sensitive credentials used by build and deployment systems, such as API tokens, SSH keys, cloud access keys, signing certificates, and passwords. In CI/CD pipelines, they let automation fetch code, publish packages, deploy services, and access infrastructure without human login.
They matter because whoever steals a secret can often act like a trusted operator. In supply-chain attacks, malicious package installs or build scripts may try to read environment variables, mounted files, or secret stores exposed to runners. Defenders reduce this risk by keeping secrets short-lived, narrowly scoped, and rotated often; separating build and release permissions; and preventing untrusted code from reaching protected credentials. Good pipeline design assumes that any code running during install or test may be hostile and should only see the minimum access needed.


