There was an error while loading. Please reload this page.
1 parent d10560e commit 61caf9cCopy full SHA for 61caf9c
1 file changed
.github/workflows/stale-issue-cleanup.yml
@@ -49,6 +49,20 @@ jobs:
49
curl -fsSL https://gh.io/copilot-install | bash
50
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
51
52
+ - name: Verify token (diagnostic - remove after first successful run)
53
+ env:
54
+ GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}
55
+ run: |
56
+ HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
57
+ -H "Authorization: token $GH_TOKEN" \
58
+ https://api.github.com/user)
59
+ echo "GitHub API /user HTTP status: $HTTP_STATUS"
60
+ if [ "$HTTP_STATUS" != "200" ]; then
61
+ echo "::error::STALE_ISSUES_TOKEN is invalid (HTTP $HTTP_STATUS). Please update the repo secret with a fresh PAT."
62
+ exit 1
63
+ fi
64
+ echo "Token is valid."
65
+
66
- name: Run stale issue cleanup agent
67
env:
68
GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}
0 commit comments