Repository navigation
fix(ci): pass OPENROUTER_API_KEY to the docs review workflow - #8400
Merged
Merged
Conversation
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
Sep 20, 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.
Every
/docs-reviewrun on this repo is currently failing, and no review is being posted. Five PRs hit it in the last few minutes (#8355, #8353, #8351, #8349, #8348).The failure is in the
activationjob, at the stepValidate ANTHROPIC_API_KEY secret.activationfails,agentis skipped, and the run reports a green-ish mixed state while doing nothing.Cause
The docs review workflow moved from the Copilot engine to the Claude engine via OpenRouter. Copilot ran on
copilot-requestscredits and needed no secret, so this caller never had asecrets:block. The Claude engine reads${{ secrets.OPENROUTER_API_KEY }}inside its engine env, and a reusable workflow does not inherit caller secrets unless they are passed explicitly.So the secret resolved to empty, and validation failed before the agent started.
Fix
Pass the secret through:
OPENROUTER_API_KEYalready exists as a repo secret here, andv1declares it underon.workflow_call.secrets, so explicit pass-through is valid. No secret needs creating.Verifying
Re-trigger the docs review checkbox on any open PR. The
activationjob should succeed andagentshould run instead of being skipped.Worth checking the same block in any other repo that calls
gh-aw-docs-review.lock.yml@v1— the same caller change is needed wherever the workflow was previously running on Copilot.🤖 Generated with Claude Code
https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
Related to elastic/docs-actions#402