diff --git a/.github/actions/e2e_verify/action.yml b/.github/actions/e2e_verify/action.yml index b86580e3ba..4ea93d495e 100644 --- a/.github/actions/e2e_verify/action.yml +++ b/.github/actions/e2e_verify/action.yml @@ -67,7 +67,7 @@ runs: sleep 5 if [[ ${{ inputs.cloudProvider }} == "azure" || ${{ inputs.cloudProvider }} == "aws" ]]; then - echo "Extracting Azure TCB versions for API update" + echo "Extracting TCB versions for API update" constellation verify --cluster-id "${clusterID}" --node-endpoint localhost:9090 -o json > "snp-report-${node}.json" else constellation verify --cluster-id "${clusterID}" --node-endpoint localhost:9090 @@ -90,7 +90,12 @@ runs: COSIGN_PASSWORD: ${{ inputs.cosignPassword }} COSIGN_PRIVATE_KEY: ${{ inputs.cosignPrivateKey }} run: | - for file in $(ls snp-report-*.json); do + reports=$(ls snp-report-*.json) + if [ -z "$reports" ]; then + exit 1 + fi + + for file in "$reports"; do path=$(realpath "${file}") cat "${path}" bazel run //internal/api/attestationconfigapi/cli -- upload ${{ inputs.cloudProvider }} snp-report "${path}"