Build secrets should not become build artefacts

Secrets used during a build have a habit of ending up inside what the build produces.

Baked into a container layer, written to a config file, left in an intermediate image, captured in the manifest. Deleting them in a later step does not always remove them, because earlier layers persist. Anything published then carries the credential to whoever downloads it.

More on Software supply chain