Skip to content

Commit

Permalink
fix shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Feb 20, 2025
1 parent df04e7b commit 4c94dfb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/check-measurements-reproducibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
bazel build //image/system:stable
bazel build //image/measured-boot/cmd
buildPath="$PWD/bazel-bin/image"
cd $(mktemp -d)
cd "$(mktemp -d)"
echo "Downloading release measurements"
curl -O https://cdn.confidential.cloud/constellation/v2/ref/-/stream/stable/${{ github.event.inputs.releasetag }}/image/measurements.json
# compare all measurements with our own
for directory in $buildPath/system/!(mkosi_wrapper.sh); do
dirname="$(basename $directory)"
csp="$(echo $dirname | cut -d_ -f1)"
attestationVariant="$(echo $dirname | cut -d_ -f2)"
for directory in "$buildPath"/system/!(mkosi_wrapper.sh); do
dirname="$(basename "$directory")"
csp="$(echo "$dirname" | cut -d_ -f1)"
attestationVariant="$(echo "$dirname" | cut -d_ -f2)"
echo "Comparing measurements of CSP $csp with attestation variant $attestationVariant"
# This jq filter selects the measurements for the correct CSP and attestation variant
Expand Down Expand Up @@ -89,9 +89,9 @@ jobs:
own-measurements.json | sponge ./own-measurements.json
echo "Their measurements:"
cat their-measurements.json | ts " "
ts " " < their-measurements.json
echo "Own measurements:"
cat own-measurements.json | ts " "
ts " " < own-measurements.json
jd ./their-measurements.json ./own-measurements.json
done

0 comments on commit 4c94dfb

Please sign in to comment.