File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 \
You can’t perform that action at this time.
0 commit comments