Skip to content

Commit

Permalink
fix(signing): Error-out on missing image cosign key
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 7, 2024
1 parent b9ce64f commit 8b0d034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/signing/signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ if ! [ -d "/etc/pki/containers" ]; then
fi

if ! [ -f "/etc/pki/containers/${IMAGE_NAME_FILE}.pub" ]; then
cp "/usr/share/ublue-os/cosign.pub" "/etc/pki/containers/${IMAGE_NAME_FILE}.pub"
echo "ERROR: Cannot find '.pub' image key in '/etc/pki/containers/'"
echo " BlueBuild CLI should have copied it, but it didn't"
exit 1
fi

TEMPLATE_POLICY="${MODULE_DIRECTORY}/signing/policy.json"
Expand Down

0 comments on commit 8b0d034

Please sign in to comment.