Skip to content

fix(ci): pass OPENROUTER_API_KEY to the docs review workflow - #8400

Merged
theletterf merged 1 commit into
mainfrom
fix/docs-review-openrouter-secret
Sep 20, 2026
Merged

theletterf merged 1 commit into
mainfrom
fix/docs-review-openrouter-secret

Conversation

@theletterf

@theletterf theletterf commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Every /docs-review run 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 activation job, at the step Validate ANTHROPIC_API_KEY secret. activation fails, agent is 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-requests credits and needed no secret, so this caller never had a secrets: 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:

    secrets:
      OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}

OPENROUTER_API_KEY already exists as a repo secret here, and v1 declares it under on.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 activation job should succeed and agent should 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

@theletterf
theletterf requested a review from a team as a code owner September 20, 2026 19:27
@theletterf
theletterf requested a review from technige September 20, 2026 19:27
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@theletterf
theletterf added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit e4e0df3 Sep 20, 2026
9 checks passed
@theletterf
theletterf deleted the fix/docs-review-openrouter-secret branch September 20, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants