Skip to content

Commit a72a9dd

Browse files
theletterfGPT-5.4cursoragent
authored
Use built-in Copilot auth for docs-actions callers (#6927)
## Summary - remove `COPILOT_GITHUB_TOKEN` handoff from the `docs-actions` caller workflows in `docs-content` - add `copilot-requests: write` where the reusable workflow jobs now depend on built-in Copilot auth - align the PR and issue menu workflows with the updated reusable workflow permission model Closes elastic/docs-actions#188. ## Test plan - [x] Verify the updated workflow callers no longer reference `COPILOT_GITHUB_TOKEN` - [x] Verify the reusable workflow jobs in the menu workflows request `copilot-requests: write` - [ ] Exercise one caller workflow against the updated `docs-actions` branch Co-authored-by: GPT-5.4 <gpt-5.4@openai.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 08498fc commit a72a9dd

11 files changed

Lines changed: 14 additions & 24 deletions

.github/workflows/docs-ai-menu.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
permissions:
1616
contents: read
17+
copilot-requests: write
1718
issues: write
1819

1920
jobs:
@@ -152,6 +153,7 @@ jobs:
152153
permissions:
153154
actions: read
154155
contents: read
156+
copilot-requests: write
155157
discussions: write
156158
issues: write
157159
pull-requests: write
@@ -174,8 +176,6 @@ jobs:
174176
**Shared ownership**: Some paths have shared ownership (e.g., `/explore-analyze/machine-learning/` is shared by Developer and Experience). Pick the team whose keywords best match the issue content.
175177
**Internal projects**: If the issue seems related to an internal documentation project, initiative, or content strategy effort, apply `Team:Projects`.
176178
**Fallback**: If you genuinely cannot determine the owning team, apply `cross-team` so the issue stays visible to all teams.
177-
secrets:
178-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
179179
180180
run-docs-issue-scope:
181181
name: Docs AI / issue scope
@@ -184,12 +184,11 @@ jobs:
184184
permissions:
185185
actions: read
186186
contents: read
187+
copilot-requests: write
187188
discussions: write
188189
issues: write
189190
pull-requests: write
190191
uses: elastic/docs-actions/.github/workflows/gh-aw-docs-issue-scope.lock.yml@v1
191-
secrets:
192-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
193192

194193
refresh-menu-after-docs-triage:
195194
name: Refresh AI menu after docs triage

.github/workflows/docs-applies-to-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
permissions:
3131
actions: read
32+
copilot-requests: write
3233
contents: read
3334
discussions: write
3435
issues: write
@@ -44,5 +45,3 @@ jobs:
4445
scope-mode: ${{ inputs.scope-mode }}
4546
target-batch-size: ${{ inputs.target-batch-size }}
4647
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
47-
secrets:
48-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-coherence-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
permissions:
3131
actions: read
32+
copilot-requests: write
3233
contents: read
3334
discussions: write
3435
issues: write
@@ -44,5 +45,3 @@ jobs:
4445
scope-mode: ${{ inputs.scope-mode }}
4546
target-batch-size: ${{ inputs.target-batch-size }}
4647
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
47-
secrets:
48-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-frontmatter-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
permissions:
3131
actions: read
32+
copilot-requests: write
3233
contents: read
3334
discussions: write
3435
issues: write
@@ -44,5 +45,3 @@ jobs:
4445
scope-mode: ${{ inputs.scope-mode }}
4546
target-batch-size: ${{ inputs.target-batch-size }}
4647
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
47-
secrets:
48-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-issue-scope.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
actions: read
9+
copilot-requests: write
910
contents: read
1011
discussions: write
1112
issues: write
@@ -17,5 +18,3 @@ jobs:
1718
github.event_name == 'workflow_dispatch' ||
1819
startsWith(github.event.comment.body, '/docs-issue-scope')
1920
uses: elastic/docs-actions/.github/workflows/gh-aw-docs-issue-scope.lock.yml@v1
20-
secrets:
21-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-openings-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
permissions:
3131
actions: read
32+
copilot-requests: write
3233
contents: read
3334
discussions: write
3435
issues: write
@@ -44,5 +45,3 @@ jobs:
4445
scope-mode: ${{ inputs.scope-mode }}
4546
target-batch-size: ${{ inputs.target-batch-size }}
4647
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
47-
secrets:
48-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-pr-ai-menu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
permissions:
1717
actions: read
18+
copilot-requests: write
1819
checks: read
1920
contents: read
2021
discussions: write
@@ -190,6 +191,7 @@ jobs:
190191
permissions:
191192
actions: read
192193
contents: read
194+
copilot-requests: write
193195
discussions: write
194196
issues: write
195197
pull-requests: write
@@ -199,8 +201,6 @@ jobs:
199201
additional-instructions: |
200202
This repository stores documentation as markdown across the repository, not only under `docs/`.
201203
Prefer concise, high-signal review comments with exact replacement text when possible.
202-
secrets:
203-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
204204
205205
refresh-menu-after-docs-review:
206206
name: Refresh AI PR menu after docs review

.github/workflows/docs-staleness-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ on:
3333

3434
permissions:
3535
actions: read
36+
copilot-requests: write
3637
contents: read
3738
discussions: write
3839
issues: write
@@ -49,5 +50,3 @@ jobs:
4950
target-batch-size: ${{ inputs.target-batch-size }}
5051
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
5152
stale-content-months: ${{ inputs.stale-content-months }}
52-
secrets:
53-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-style-sweep.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ on:
2929

3030
permissions:
3131
actions: read
32+
copilot-requests: write
3233
contents: read
3334
discussions: write
3435
issues: write
@@ -44,5 +45,3 @@ jobs:
4445
scope-mode: ${{ inputs.scope-mode }}
4546
target-batch-size: ${{ inputs.target-batch-size }}
4647
max-per-fix-issue: ${{ inputs.max-per-fix-issue }}
47-
secrets:
48-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

.github/workflows/docs-triage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
actions: read
9+
copilot-requests: write
910
contents: read
1011
discussions: write
1112
issues: write
@@ -35,5 +36,3 @@ jobs:
3536
**Shared ownership**: Some paths have shared ownership (e.g., `/explore-analyze/machine-learning/` is shared by Developer and Experience). Pick the team whose keywords best match the issue content.
3637
**Internal projects**: If the issue seems related to an internal documentation project, initiative, or content strategy effort, apply `Team:Projects`.
3738
**Fallback**: If you genuinely cannot determine the owning team, apply `cross-team` so the issue stays visible to all teams.
38-
secrets:
39-
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)