Enable org billing (copilot-requests) for agentic workflows#2003
Closed
SteveSandersonMS wants to merge 6 commits into
Closed
Enable org billing (copilot-requests) for agentic workflows#2003SteveSandersonMS wants to merge 6 commits into
SteveSandersonMS wants to merge 6 commits into
Conversation
Recompile issue-triage.lock.yml with gh-aw v0.82.1 to wire
GH_AW_RUNTIME_FEATURES=${{ vars.GH_AW_RUNTIME_FEATURES }}, enabling native
issue intents (rationale/confidence) for the workflow's add-labels safe
output. No behavior change: the trigger, permissions, prompt, and safe
outputs are unchanged, and the source .md is untouched.
The actions-lock.json pin bump (github/gh-aw-actions/setup v0.82.1) is
required by the recompiled lock.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The verify-compiled workflow pinned gh-aw v0.77.5 while issue-triage.lock.yml was compiled with v0.82.1, so CI recompiled at v0.77.5 and the byte diff failed the check. Bump the pin to v0.82.1 to match, and recompile all lock files at v0.82.1 so they are consistent with the pinned compiler. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds org-billing configuration to 11 agentic workflows and recompiles their generated lock files. However, gh-aw v0.77.5 ignores this feature flag, so the generated workflows still use COPILOT_GITHUB_TOKEN.
Changes:
- Adds
features.copilot-requests: trueto 11 workflow sources. - Regenerates corresponding lock files and metadata.
- Normalizes two unchanged final lines.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/sdk-consistency-review.md |
Adds billing feature flag. |
.github/workflows/sdk-consistency-review.lock.yml |
Updates generated metadata and markers. |
.github/workflows/release-changelog.md |
Adds billing feature flag. |
.github/workflows/release-changelog.lock.yml |
Updates generated metadata and markers. |
.github/workflows/java-codegen-fix.md |
Adds billing feature flag. |
.github/workflows/java-codegen-fix.lock.yml |
Updates generated metadata and markers. |
.github/workflows/java-adapt-handwritten-code-to-accept-upgrade-changes.md |
Adds billing feature flag. |
.github/workflows/java-adapt-handwritten-code-to-accept-upgrade-changes.lock.yml |
Updates generated metadata and markers. |
.github/workflows/issue-triage.md |
Adds billing feature flag. |
.github/workflows/issue-triage.lock.yml |
Updates generated metadata and markers. |
.github/workflows/issue-classification.md |
Adds billing feature flag. |
.github/workflows/issue-classification.lock.yml |
Updates generated metadata and markers. |
.github/workflows/handle-question.md |
Adds billing feature flag. |
.github/workflows/handle-question.lock.yml |
Updates generated metadata and markers. |
.github/workflows/handle-enhancement.md |
Adds billing feature flag. |
.github/workflows/handle-enhancement.lock.yml |
Updates generated metadata and markers. |
.github/workflows/handle-documentation.md |
Adds billing feature flag. |
.github/workflows/handle-documentation.lock.yml |
Updates generated metadata and markers. |
.github/workflows/handle-bug.md |
Adds billing feature flag. |
.github/workflows/handle-bug.lock.yml |
Updates generated metadata and markers. |
.github/workflows/cross-repo-issue-analysis.md |
Adds billing feature flag. |
.github/workflows/cross-repo-issue-analysis.lock.yml |
Updates generated metadata and markers. |
Review details
- Files reviewed: 22/22 changed files
- Comments generated: 11
- Review effort level: Medium
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
Comment on lines
+2
to
+3
| features: | ||
| copilot-requests: true |
`gh aw compile` with the v0.82.10 toolchain introduced by this PR emits `.github/workflows/agentics-maintenance.yml`. Commit the generated file so it is tracked alongside the recompiled locks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 004ba78d-3cf4-41ab-8647-180e683460f0
Add `permissions.copilot-requests: write` to all 11 agentic (gh-aw) workflows so their Copilot usage is billed to the org, and recompile the lock files. The compiled workflows now authenticate the Copilot CLI with the GitHub Actions token and set S2STOKENS=true. Authored by adding `features.copilot-requests: true`, migrating it with `gh aw fix --write` (the deprecated flag maps to the permission), and recompiling with gh-aw v0.82.10. Rebased onto #1880 (issue-intents), which bumps the pinned gh-aw CLI to v0.82.10. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 004ba78d-3cf4-41ab-8647-180e683460f0
9131685 to
66fc319
Compare
Contributor
Author
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.
What
Enables org billing for all agentic (gh-aw) workflows in this repo by adding the following to each workflow's frontmatter:
```yaml
features:
copilot-requests: true
```
Details
All 11 use the `copilot` engine, so the feature applies to each of them:
Verification