Repository navigation
Grant id-token: write to the agentic workflow callers - #8991
Merged
Merged
Conversation
The docs agentic workflows are moving from OpenRouter to Agent Router, which they reach with a Google ID token minted from the job's GitHub OIDC token. A reusable workflow cannot get more permissions than its caller grants, so the calling jobs need id-token: write. Related to elastic/docs-eng-team#1056 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
akira28
approved these changes
Oct 26, 2026
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
IT is moving our docs agentic workflows from OpenRouter to Agent Router, and the new versions of the reusable workflows in
elastic/docs-actions(elastic/docs-actions#426, still a draft) reach the gateway with a Google ID token. That token comes from the job's GitHub OIDC token, and GitHub only issues one to a job that hasid-token: write.A reusable workflow cannot get more permissions than the calling job grants. So once
v1moves to the new versions, a caller without this permission would fail at startup, even for runs that would not need it. I checked all the callers, and none of the three docs repos grant it today.This PR adds
id-token: writenext tocopilot-requests: writein the callers of the five workflows that use Agent Router:docs-triage.yml,docs-auto-triage.yml,docs-scope.ymlanddocs-project-metadata.yml(workflow-level permissions)docs-ai-menu.yml(therun-docs-issue-scopejob)docs-pr-ai-menu.yml(therun-docs-reviewjob)It is safe to merge now. The current
v1workflows do not use the permission, so nothing changes until the release. The permission only lets a job ask for a token that describes itself. Google decides what that token can do, and IT's identity pool only accepts tokens fromgh-aw-*workflows inelastic/docs-actions, from the repos on the service account's list (elastic/centralized-it-infra#1636).Where a file keeps its permissions at the workflow level, the new line sits in that block and covers every job that inherits it. I only added it to the jobs or blocks that call the reusable workflow.
Related to elastic/docs-eng-team#1056
Generative AI disclosure
Tool(s) and model(s) used: Claude Code (Claude Sonnet 5.5)
🤖 Generated with Claude Code