Skip to content

Commit d5dd526

Browse files
Enable org-billed Copilot auth for agentic workflows (#10984)
This updates the repository’s agentic workflows to use the current Copilot permission model for org-wide billing. The workflows no longer depend on the legacy `COPILOT_GITHUB_TOKEN` secret path for Copilot inference. - **Workflow source updates** - Updated the agentic workflow frontmatter in: - `.github/workflows/bump-tcgc-csharp.md` - `.github/workflows/issue-triage.md` - Replaced broad `read-all` shorthand with explicit permissions that preserve read access while enabling Copilot requests: ```yaml permissions: all: read copilot-requests: write ``` - **Generated workflow refresh** - Recompiled the corresponding `.lock.yml` files so generated workflows match the new auth model. - The generated workflows now use `github.token` for Copilot auth instead of the old secret-validation flow. - **Behavioral impact** - Removes reliance on the previous Copilot token setup for these agentic workflows. - Aligns workflow auth with the current org-billed Copilot execution path. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
1 parent c5d3e9f commit d5dd526

8 files changed

Lines changed: 1021 additions & 184 deletions

.github/aw/actions-lock.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"version": "v9.0.0",
66
"sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3"
77
},
8-
"github/gh-aw-actions/setup@v0.77.5": {
9-
"repo": "github/gh-aw-actions/setup",
10-
"version": "v0.77.5",
11-
"sha": "3ea13c02d765410340d533515cb31a7eef2baaf0"
12-
},
138
"github/gh-aw/actions/setup@v0.57.2": {
149
"repo": "github/gh-aw/actions/setup",
1510
"version": "v0.57.2",

.github/workflows/agentics-maintenance.yml

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/bump-tcgc-csharp.lock.yml

Lines changed: 204 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/bump-tcgc-csharp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
schedule: "13 3 * * *"
1010
workflow_dispatch:
1111

12-
permissions: read-all
12+
permissions:
13+
all: read
14+
copilot-requests: write
1315

1416
network: defaults
1517

.github/workflows/check-agentic-workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v6
1818

1919
- name: Install gh-aw
20-
run: curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh | bash
20+
run: curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh | bash -s -- v0.79.8
2121

2222
- name: Compile and check for drift
2323
run: |

.github/workflows/issue-triage.lock.yml

Lines changed: 203 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/issue-triage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ on:
1717
roles: all
1818
reaction: eyes
1919

20-
permissions: read-all
20+
permissions:
21+
all: read
22+
copilot-requests: write
2123

2224
network: defaults
2325

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pnpm-lock.yaml
1313

1414
# Agentic workflow lock file
1515
**/*.lock.yml
16+
.github/workflows/agentics-maintenance.yml
1617

1718
# Emu spec file, formatting is wrong
1819
packages/spec/src/spec.emu.html

0 commit comments

Comments
 (0)