This commit is contained in:
@@ -56,6 +56,10 @@ EXPECTED_ARTIFACT_SHA256=$(jq -er \
|
||||
release-manifest.json)
|
||||
[ "$(sha256_file "$ARTIFACT")" = "$EXPECTED_ARTIFACT_SHA256" ] \
|
||||
|| { printf 'Release artifact digest does not match the signed manifest\n' >&2; exit 1; }
|
||||
EXPECTED_ARTIFACT_SIZE=$(jq -er '.artifactSizeBytes | numbers | floor | select(. > 0)' \
|
||||
release-manifest.json)
|
||||
[ "$(wc -c < "$ARTIFACT" | tr -d '[:space:]')" -eq "$EXPECTED_ARTIFACT_SIZE" ] \
|
||||
|| { printf 'Release artifact size does not match the signed manifest\n' >&2; exit 1; }
|
||||
[ "$(jq '.sboms | length' release-manifest.json)" -eq 2 ] \
|
||||
|| { printf 'Release manifest must bind two SBOMs\n' >&2; exit 1; }
|
||||
jq -e --arg version "$VERSION" \
|
||||
|
||||
Reference in New Issue
Block a user