Skip to content

chore(workflows): disable AI-credit limits and use copilot-requests permission#1010

Merged
jamesadevine merged 1 commit into
mainfrom
jamesadevine/chore-workflows-disable-token-limits-copilot-requests
Jun 14, 2026
Merged

chore(workflows): disable AI-credit limits and use copilot-requests permission#1010
jamesadevine merged 1 commit into
mainfrom
jamesadevine/chore-workflows-disable-token-limits-copilot-requests

Conversation

@jamesadevine

Copy link
Copy Markdown
Collaborator

Summary

Updates every agentic workflow under .github/workflows/ to:

  1. Disable AI-credit budgets by setting max-ai-credits: -1 and max-daily-ai-credits: -1 in 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.
  2. Switch Copilot inference to the new copilot-requests: write permission so each run mints inference auth from the GitHub Actions token. This replaces the COPILOT_GITHUB_TOKEN PAT path (which had to be refreshed periodically) — COPILOT_GITHUB_TOKEN is automatically ignored for inference when this permission is granted.

All 17 .lock.yml files were regenerated with gh 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 — bumped setup-cli action 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 by gh aw compile under the v0.79.6 dispatcher.

max-turns was intentionally left at the default 500.

Test plan

  • Verified front-matter edits via view on three representative workflows (change-risk, docs-writer, recompile-safe-output-fixtures).
  • gh aw compile recompiled all 17 .md sources without error (run by the author).
  • No source code is changed; only workflow definitions and the generated lock/maintenance files.

…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>
@jamesadevine jamesadevine merged commit 1e567a9 into main Jun 14, 2026
14 checks passed
@jamesadevine jamesadevine deleted the jamesadevine/chore-workflows-disable-token-limits-copilot-requests branch June 14, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant