Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! ci: call TCB upload step for AWS
Browse files Browse the repository at this point in the history
ensure test fails if no reports are found unexpectedly
  • Loading branch information
derpsteb committed Nov 21, 2023
1 parent 58cc9d6 commit 8b948b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/e2e_verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 8b948b2

Please sign in to comment.