mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-02 11:28:06 +00:00
36 lines
937 B
Bash
36 lines
937 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Tell build process to exit if there are any errors.
|
|
set -oue pipefail
|
|
|
|
sed -i 's/insecureAcceptAnything/reject/' /etc/containers/policy.json
|
|
|
|
|
|
# Exception for build-container-installer to allow the ISO generation script to work
|
|
# https://github.com/JasonN3/build-container-installer/issues/123
|
|
yq -i -o=j '.transports.docker |=
|
|
{"ghcr.io/jasonn3": [
|
|
{
|
|
"type": "sigstoreSigned",
|
|
"keyPath": "/etc/pki/containers/build-container-installer.pub",
|
|
"signedIdentity": {
|
|
"type": "matchRepository"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
+ .' /etc/containers/policy.json
|
|
|
|
yq -i -o=j '.transports.docker |=
|
|
{"ghcr.io/zelikos": [
|
|
{
|
|
"type": "sigstoreSigned",
|
|
"keyPath": "/etc/pki/containers/davincibox.pub",
|
|
"signedIdentity": {
|
|
"type": "matchRepository"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
+ .' /etc/containers/policy.json
|