mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-23 16:30:11 -05:00
fix shellcheck issues
This commit is contained in:
parent
df04e7b9cb
commit
4c94dfb1b0
@ -39,16 +39,16 @@ jobs:
|
|||||||
bazel build //image/system:stable
|
bazel build //image/system:stable
|
||||||
bazel build //image/measured-boot/cmd
|
bazel build //image/measured-boot/cmd
|
||||||
buildPath="$PWD/bazel-bin/image"
|
buildPath="$PWD/bazel-bin/image"
|
||||||
cd $(mktemp -d)
|
cd "$(mktemp -d)"
|
||||||
|
|
||||||
echo "Downloading release measurements"
|
echo "Downloading release measurements"
|
||||||
curl -O https://cdn.confidential.cloud/constellation/v2/ref/-/stream/stable/${{ github.event.inputs.releasetag }}/image/measurements.json
|
curl -O https://cdn.confidential.cloud/constellation/v2/ref/-/stream/stable/${{ github.event.inputs.releasetag }}/image/measurements.json
|
||||||
|
|
||||||
# compare all measurements with our own
|
# compare all measurements with our own
|
||||||
for directory in $buildPath/system/!(mkosi_wrapper.sh); do
|
for directory in "$buildPath"/system/!(mkosi_wrapper.sh); do
|
||||||
dirname="$(basename $directory)"
|
dirname="$(basename "$directory")"
|
||||||
csp="$(echo $dirname | cut -d_ -f1)"
|
csp="$(echo "$dirname" | cut -d_ -f1)"
|
||||||
attestationVariant="$(echo $dirname | cut -d_ -f2)"
|
attestationVariant="$(echo "$dirname" | cut -d_ -f2)"
|
||||||
|
|
||||||
echo "Comparing measurements of CSP $csp with attestation variant $attestationVariant"
|
echo "Comparing measurements of CSP $csp with attestation variant $attestationVariant"
|
||||||
# This jq filter selects the measurements for the correct CSP and attestation variant
|
# This jq filter selects the measurements for the correct CSP and attestation variant
|
||||||
@ -89,9 +89,9 @@ jobs:
|
|||||||
own-measurements.json | sponge ./own-measurements.json
|
own-measurements.json | sponge ./own-measurements.json
|
||||||
|
|
||||||
echo "Their measurements:"
|
echo "Their measurements:"
|
||||||
cat their-measurements.json | ts " "
|
ts " " < their-measurements.json
|
||||||
echo "Own measurements:"
|
echo "Own measurements:"
|
||||||
cat own-measurements.json | ts " "
|
ts " " < own-measurements.json
|
||||||
|
|
||||||
jd ./their-measurements.json ./own-measurements.json
|
jd ./their-measurements.json ./own-measurements.json
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user