Conversation
00c4611 to
5181b6c
Compare
There was a problem hiding this comment.
Pull request overview
Updates the scheduled “Stale Issue Cleanup” GitHub Actions workflow to run the Copilot CLI-based issue management agent and documents the intended authentication model for Copilot inference vs. GitHub API operations.
Changes:
- Replaces the “Install Agency” +
agency copilotinvocation with “Install Copilot CLI” +copilot --agent issue-manager. - Reworks the workflow’s authentication documentation and switches environment variables to separate Copilot model auth from GitHub API auth.
- Tightens job
permissions(removesissues: write) while keepingcontents: read.
Comments suppressed due to low confidence (1)
.github/workflows/stale-issue-cleanup.yml:54
- Job-level
permissionsis restricted tocontents: read, but the workflow uploads an artifact viaactions/upload-artifact@v4. That action usesGITHUB_TOKENand typically requiresactions: write; otherwise the upload can fail with "Resource not accessible by integration". Addactions: write(or remove the explicitpermissions:override if least-privilege isn’t required here).
permissions:
contents: read
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| env: | ||
| GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} | ||
| COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_TOKEN }} | ||
| STALE_ISSUES_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} |
There was a problem hiding this comment.
STALE_ISSUES_TOKEN is exported, but the issue-manager agent instructions use gh api ... (GitHub CLI), which authenticates via GH_TOKEN (or a persisted gh auth login). As written, gh calls from the agent will run unauthenticated and fail. Set GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} (and keep COPILOT_GITHUB_TOKEN for model auth), or add an explicit gh auth login --with-token step.
| STALE_ISSUES_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} | |
| STALE_ISSUES_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} | |
| GH_TOKEN: ${{ secrets.STALE_ISSUES_TOKEN }} |
Uh oh!
There was an error while loading. Please reload this page.