There was an error while loading. Please reload this page.
1 parent f5ee51e commit f3b242bCopy full SHA for f3b242b
1 file changed
.github/workflows/diag-hex.yml
@@ -0,0 +1,20 @@
1
+name: Reveal site endpoint hostname
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ reveal:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Dump hostname as hex/dec (masking-proof)
11
+ env:
12
+ SITE: ${{ secrets.HOMEPAGE_BUNNY_S3_ENDPOINT }}
13
+ SHARE: ${{ secrets.BUNNY_S3_ENDPOINT }}
14
+ run: |
15
+ SITE_HOST=$(echo "$SITE" | sed -E 's#^https?://##; s#[/:].*##')
16
+ SHARE_HOST=$(echo "$SHARE" | sed -E 's#^https?://##; s#[/:].*##')
17
+ echo "site host hex: $(printf '%s' "$SITE_HOST" | od -An -tx1 | tr -d ' \n')"
18
+ echo "site host len: ${#SITE_HOST}"
19
+ echo "share host hex: $(printf '%s' "$SHARE_HOST" | od -An -tx1 | tr -d ' \n')"
20
+ echo "share host len: ${#SHARE_HOST}"
0 commit comments