Skip to content

Commit f3b242b

Browse files
committed
ci: dump endpoint hostnames as hex (temp)
1 parent f5ee51e commit f3b242b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/diag-hex.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)