Skip to content

Commit 0797950

Browse files
committed
Checking Token
1 parent 75484be commit 0797950

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build-citus-community-nightlies.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ jobs:
4343
- name: Check token format
4444
run: |
4545
TOKEN="${{ steps.app.outputs.token }}"
46-
if [[ "$TOKEN" == eyJ* ]]; then
47-
echo "TOKEN FORMAT: appears to be a JWT (app-level token)."
48-
else
49-
echo "TOKEN FORMAT: not a JWT (installation token or PAT)."
46+
if [[ "$TOKEN" == ghu_* ]]; then
47+
echo "GitHub App installation token"
48+
elif [[ "$TOKEN" == eyJ* ]]; then
49+
echo "JWT token"
50+
elif [[ "$TOKEN" == ghp_* ]]; then
51+
echo "Personal Access Token"
5052
fi
53+
echo "Token preview (first 5 chars): ${TOKEN:0:5}"
5154
5255
- name: Set GH_TOKEN for all steps
5356
run: echo "GH_TOKEN=${{ steps.app.outputs.token }}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)