chore(workflows): disable AI-credit limits and use copilot-requests permission#1010
Merged
jamesadevine merged 1 commit intoJun 14, 2026
Conversation
…ermission Set max-ai-credits: -1 and max-daily-ai-credits: -1 on every agentic workflow to remove the per-run and rolling-24h AIC guardrails. Add copilot-requests: write to each permissions block so Copilot inference uses the run's GITHUB_TOKEN instead of the COPILOT_GITHUB_TOKEN PAT, eliminating periodic token refreshes. Lock files regenerated with gh aw compile (v0.79.6); also includes the actions-lock.json refresh, copilot-setup-steps.yml SHA bump, the generated agentics-maintenance.yml, and the gh-aw v0.79.6 agents/skills artifacts emitted by the same compile run. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates every agentic workflow under
.github/workflows/to:max-ai-credits: -1andmax-daily-ai-credits: -1in the front matter. The default per-run cap is 1000 AIC (~$10) and the rolling 24h cap is 5000 AIC; both are off for these workflows now.copilot-requests: writepermission so each run mints inference auth from the GitHub Actions token. This replaces theCOPILOT_GITHUB_TOKENPAT path (which had to be refreshed periodically) —COPILOT_GITHUB_TOKENis automatically ignored for inference when this permission is granted.All 17
.lock.ymlfiles were regenerated withgh aw compile(v0.79.6). Side-effect file updates included:.github/aw/actions-lock.json— refreshed action SHAs picked up by the compiler..github/workflows/copilot-setup-steps.yml— bumpedsetup-cliaction SHA to match the installed gh-aw version..github/workflows/agentics-maintenance.yml— auto-generated maintenance workflow emitted by gh-aw v0.79.6..github/agents/agentic-workflows.md(renamed from.agent.md) and.github/skills/agentic-workflows/SKILL.md— generated bygh aw compileunder the v0.79.6 dispatcher.max-turnswas intentionally left at the default 500.Test plan
viewon three representative workflows (change-risk,docs-writer,recompile-safe-output-fixtures).gh aw compilerecompiled all 17.mdsources without error (run by the author).