From a26c6b44ac3cb960f7d98d27a076ea706415d72f Mon Sep 17 00:00:00 2001 From: miampf Date: Wed, 5 Feb 2025 14:33:51 +0100 Subject: [PATCH] delete expected zeroes from own measurements as well --- .github/workflows/check-measurements-reproducibility.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-measurements-reproducibility.yml b/.github/workflows/check-measurements-reproducibility.yml index 15d970763..1544f79c5 100644 --- a/.github/workflows/check-measurements-reproducibility.yml +++ b/.github/workflows/check-measurements-reproducibility.yml @@ -46,7 +46,8 @@ jobs: '.list.[] | select(.attestationVariant == $attestation_variant) | select((.csp | ascii_downcase) == $csp) | .measurements | walk(if (type=="object" and (.warnOnly or .expected == "0000000000000000000000000000000000000000000000000000000000000000")) then del(.) else . end) | del(..|nulls) | del(.[] .warnOnly)' \ measurements.json > their-measurements.json sudo env "PATH=$PATH" "$buildPath/measured-boot/cmd/cmd_/cmd" "$directory/constellation" ./own-measurements.json - jq '.measurements' own-measurements.json | sponge ./own-measurements.json + jq '.measurements | walk(if (type == "object" and .expected == "0000000000000000000000000000000000000000000000000000000000000000") then del(.) else . end) | del(..|nulls)' \ + own-measurements.json | sponge ./own-measurements.json echo "Their measurements:" cat their-measurements.json | ts " "