Skip to content

Commit 75484be

Browse files
committed
Checking token format
1 parent bf97f8e commit 75484be

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
private-key: ${{ secrets.GH_APP_KEY }}
4141
owner: ${{ github.repository_owner }}
4242

43+
- name: Check token format
44+
run: |
45+
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)."
50+
fi
51+
4352
- name: Set GH_TOKEN for all steps
4453
run: echo "GH_TOKEN=${{ steps.app.outputs.token }}" >> $GITHUB_ENV
4554

packaging_automation/tests/test_citus_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def setup_module():
8787
)
8888
if not os.path.exists(PACKAGING_EXEC_FOLDER):
8989
run(
90-
f"git clone --branch {packaging_branch_name} https://x-access-token:{GH_TOKEN}@github.com/citusdata/packaging.git {PACKAGING_EXEC_FOLDER}"
90+
f"git clone --branch {packaging_branch_name} https://x-access-token:{GH_TOKEN}@github.com/citusdata/packaging.git "
91+
f"{PACKAGING_EXEC_FOLDER}"
9192
)
9293

9394

0 commit comments

Comments
 (0)