cosign-sign/entrypoint.sh
2025-09-08 15:29:42 +02:00

10 lines
257 B
Bash
Executable file

#! /bin/sh
if [ -z ${PLUGIN_IMAGES+x} ]; then
echo "ERROR: images setting is required."
exit 1
fi
echo "${PLUGIN_IMAGES}" | jq --raw-output '.[]' | while read -r image; do
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
done