From 50522cb73c691321d7e58cbff071caf43f13ae0c Mon Sep 17 00:00:00 2001 From: Fabian Kammel Date: Fri, 10 Feb 2023 17:57:26 +0100 Subject: [PATCH] expand variables (#1161) Signed-off-by: Fabian Kammel --- .github/workflows/build-os-image.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-os-image.yml b/.github/workflows/build-os-image.yml index 351b30833..b874b0498 100644 --- a/.github/workflows/build-os-image.yml +++ b/.github/workflows/build-os-image.yml @@ -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 }}"