Skip to content

Commit 6c06680

Browse files
committed
diag: add token prefix/length check, copilot version, and gh auth status
1 parent da1ce85 commit 6c06680

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/stale-issue-cleanup.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ jobs:
5050
curl -fsSL https://gh.io/copilot-install | bash
5151
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
5252
53+
- name: Diagnostics
54+
env:
55+
GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}
56+
run: |
57+
echo "Token prefix: ${GH_TOKEN:0:12}"
58+
echo "Token length: ${#GH_TOKEN}"
59+
copilot --version
60+
echo '--- gh auth status ---'
61+
gh auth status
62+
5363
- name: Run stale issue cleanup agent
5464
env:
5565
COPILOT_GITHUB_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}

0 commit comments

Comments
 (0)