Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Nov 28, 2023
1 parent 17b2325 commit f92b2b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3968,17 +3968,25 @@ 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
echo "Expected IP address redaction count to be greater than 0"
exit 1
fi
- name: Delete support bundle generated on failure
if: failure()
run: |
rm -rf support-bundle-*.tar.gz
- name: Generate support bundle on failure
if: failure()
uses: ./.github/actions/generate-support-bundle
Expand Down

0 comments on commit f92b2b6

Please sign in to comment.