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