mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-23 08:20:15 -05:00
delete expected zeroes from own measurements as well
This commit is contained in:
parent
48b1e82f0b
commit
a0b9963a3d
@ -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 " "
|
||||
|
Loading…
x
Reference in New Issue
Block a user