Skip to content

Commit b777ddc

Browse files
committed
debug: add detailed token debugging to release workflow
1 parent d9a1359 commit b777ddc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/cargo-workspaces-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,27 @@ jobs:
5252
echo "cargo-workspaces already installed"
5353
fi
5454
55+
- name: Debug token configuration
56+
run: |
57+
echo "=== Token Debug Information ==="
58+
if [ -n "${{ secrets.PAT_TOKEN }}" ]; then
59+
echo "✅ PAT_TOKEN is available"
60+
echo "PAT_TOKEN length: ${#PAT_TOKEN}"
61+
else
62+
echo "❌ PAT_TOKEN is NOT available"
63+
fi
64+
65+
if [ -n "${{ secrets.GITHUB_TOKEN }}" ]; then
66+
echo "✅ GITHUB_TOKEN is available"
67+
else
68+
echo "❌ GITHUB_TOKEN is NOT available"
69+
fi
70+
echo "Current git remote:"
71+
git remote -v
72+
echo "=== End Debug ==="
73+
env:
74+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
75+
5576
- name: Configure git
5677
run: |
5778
git config user.name "github-actions[bot]"
@@ -66,6 +87,9 @@ jobs:
6687
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
6788
fi
6889
90+
echo "Final git remote configuration:"
91+
git remote -v
92+
6993
- name: Verify authentication (non-dry-run)
7094
if: ${{ !inputs.dry_run }}
7195
env:

0 commit comments

Comments
 (0)