expand variables (#1161)

Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
Fabian Kammel 2023-02-10 17:57:26 +01:00 committed by GitHub
parent 278031b066
commit 50522cb73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,9 +583,6 @@ jobs:
- name: Add static PCRs
run: |
OUTFLAGS="-I 0 -o json -i"
PCRFILE="${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
case ${{ matrix.csp }} in
aws)
yq e '.csp = "AWS" |
@ -611,7 +608,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
azure)
yq e '.csp = "Azure" |
@ -635,7 +632,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
gcp)
yq e '.csp = "GCP" |
@ -665,7 +662,7 @@ jobs:
.measurements.14.warnOnly = true |
.measurements.14.expected = "d7c4cc7ff7933022f013e03bdee875b91720b5b86cf1753cad830f95e791926f" |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
qemu)
yq e '.csp = "QEMU" |
@ -677,7 +674,7 @@ jobs:
.measurements.12.warnOnly = false |
.measurements.13.warnOnly = false |
.measurements.15.warnOnly = false' \
"${OUTFLAGS}" "${PCRFILE}"
-I 0 -o json -i "${{ github.workspace }}/pcrs-${{ matrix.csp }}.json"
;;
*)
echo "Unknown CSP: ${{ matrix.csp }}"