Use run-scoped authentication for Aider workflows - #53044
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Hey What's Working
Before Merging
Looks ready to ship once the final validation checks are done! 🚀
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Updates the gh-aw/Aider GitHub Actions workflows to use the built-in github.token and request the copilot-requests: write permission, removing the dependency on a dedicated COPILOT_GITHUB_TOKEN secret.
Changes:
- Adds
copilot-requests: writeto workflow/job permissions. - Replaces
secrets.COPILOT_GITHUB_TOKENusage with${{ github.token }}for Copilot/OpenAI-compatible auth. - Removes
COPILOT_GITHUB_TOKENfrom secret manifests and token-check/redaction wiring in generated lock workflows.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-aider.md | Requests copilot-requests: write at the workflow permissions level. |
| .github/workflows/smoke-aider.lock.yml | Drops COPILOT secret usage, adds copilot-requests: write, and switches env vars to ${{ github.token }}. |
| .github/workflows/daily-go-test-stubs-aider.md | Requests copilot-requests: write at the workflow permissions level. |
| .github/workflows/daily-go-test-stubs-aider.lock.yml | Drops COPILOT secret usage, adds copilot-requests: write, and switches env vars to ${{ github.token }}. |
| .github/workflows/daily-code-debt-aider.md | Requests copilot-requests: write at the workflow permissions level. |
| .github/workflows/daily-code-debt-aider.lock.yml | Drops COPILOT secret usage, adds copilot-requests: write, and switches env vars to ${{ github.token }}. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Lite
| env: | ||
| GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' | ||
| SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} | ||
| GH_AW_SECRET_NAMES: 'GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' |
| env: | ||
| GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' | ||
| SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} | ||
| GH_AW_SECRET_NAMES: 'GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN' |
|
🎉 This pull request is included in a new release. Release: |
Aider workflows failed before execution because the API proxy depended on an expired
COPILOT_GITHUB_TOKENrepository secret.copilot-requests: writeto all Aider workflows.${{ github.token }}for Copilot inference instead of the repository secret.