Skip to content

Commit b2baef2

Browse files
committed
Try different env var
1 parent 61caf9c commit b2baef2

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,9 @@ jobs:
4949
curl -fsSL https://gh.io/copilot-install | bash
5050
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
5151
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-
6652
- name: Run stale issue cleanup agent
6753
env:
54+
COPILOT_GITHUB_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}
6855
GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }}
6956
run: |
7057
copilot \

0 commit comments

Comments
 (0)