diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 1b1ba0160c..bb656852a8 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -3968,13 +3968,8 @@ jobs: # fetch the redactor report BUNDLE_ID=$(curl -sSL -X GET "http://localhost:3000/api/v1/troubleshoot/app/$APP_SLUG/supportbundles" -H "Authorization: $KOTSADM_AUTHSTRING" | jq -r .supportBundles[0].id) - echo "fetching redactor report for bundle $BUNDLE_ID" curl -sSL -X GET "http://localhost:3000/api/v1/troubleshoot/supportbundle/$BUNDLE_ID/redactions" -H "Authorization: $KOTSADM_AUTHSTRING" > redactions.json - cat redactions.json - - cat support-bundle-*/static/ips.txt - # validate that default ip address redaction was applied IP_ADDRESS_REDACTION_COUNT=$(jq '.redactions.byRedactor."IP Addresses.regex.0" | length' < redactions.json) if [ "$IP_ADDRESS_REDACTION_COUNT" -eq "0" ]; then @@ -3982,8 +3977,8 @@ jobs: exit 1 fi - - name: Delete support bundle generated on failure - if: failure() + - name: Delete support bundle from the test + if: always() run: | rm -rf support-bundle-*.tar.gz