mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-15 00:21:57 +00:00
Bind release activation to trusted provenance
This commit is contained in:
parent
d06ffc233d
commit
718de25b2b
7 changed files with 219 additions and 14 deletions
|
|
@ -39,6 +39,9 @@ for command in docker gh jq; do
|
|||
fi
|
||||
done
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
"${SCRIPT_DIR}/require-safe-gh-attestation.sh"
|
||||
|
||||
resolve_digest() {
|
||||
local reference="$1"
|
||||
local manifest
|
||||
|
|
@ -75,6 +78,7 @@ verify_image() {
|
|||
--bundle-from-oci \
|
||||
--signer-workflow "$SIGNER_WORKFLOW" \
|
||||
--source-digest "$SOURCE_SHA" \
|
||||
--predicate-type https://slsa.dev/provenance/v1 \
|
||||
>/dev/null
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue