You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pin signing keys used by scripts that Dockerfiles run #1854
#1852 establishes the pattern for signing keys: keys are checked in with a hash file, staged into the build context, and never downloaded during an image build. That PR applies the pattern to Dockerfiles only. This issue tracks applying it to the scripts that Dockerfiles copy in and run.
Known case
setup-node-24.x.sh downloads the NodeSource APT key during the build:
It is the only script under src/ that downloads a key today.
Work
Check in the NodeSource key and its hash file, following eng/signing-keys/README.md.
Change the three images to use the staged key instead of downloading it.
Decide whether SigningKeyTests should also read the scripts next to a Dockerfile. It reads only Dockerfiles today, which is why it did not find this case.
Out of scope
eng/common/cross/build-rootfs.sh comes from dotnet/arcade. It does not download keys, but several of its downloads (OpenBSD, illumos, Haiku, GNU sources) are not verified. Any change there belongs in dotnet/arcade.
Activity