Skip to content

Commit 2b125ff

Browse files
committed
scripts: fix sbom digest jq helper
1 parent 43c1603 commit 2b125ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/verify_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fi
122122

123123
printf "[5/5] Inspecting SBOM integrity metadata...\n"
124124
ARTIFACT_DIGEST=$("${SHA_CMD[@]}" "$ARTIFACT" | awk '{print $1}')
125-
SBOM_DIGEST=$(jq -r '.metadata.component.hashes[]? | select((.alg // .algorithm | ascii_uppercase) == "SHA-256") | .content' "$SBOM" | head -n 1)
125+
SBOM_DIGEST=$(jq -r '.metadata.component.hashes[]? | select((.alg // .algorithm | ascii_upcase) == "SHA-256") | .content' "$SBOM" | head -n 1)
126126
if [[ -n "$SBOM_DIGEST" ]]; then
127127
if [[ "$ARTIFACT_DIGEST" != "$SBOM_DIGEST" ]]; then
128128
echo "warning: SBOM embedded digest ($SBOM_DIGEST) does not match artifact digest ($ARTIFACT_DIGEST)" >&2

0 commit comments

Comments
 (0)