Skip to content

Pass DOCS_LITELLM_API_KEY to agentic workflow callers via secrets: inherit#645

Open
theletterf wants to merge 1 commit into
mainfrom
use-docs-litellm-key
Open

Pass DOCS_LITELLM_API_KEY to agentic workflow callers via secrets: inherit#645
theletterf wants to merge 1 commit into
mainfrom
use-docs-litellm-key

Conversation

@theletterf

Copy link
Copy Markdown
Member

Summary

  • GitHub Actions does not automatically forward secrets to reusable workflows called via uses:/workflow_call. Without explicit passthrough, ANTHROPIC_API_KEY (mapped from secrets.DOCS_LITELLM_API_KEY) is empty and the agentic workflows fail with "None of the following secrets are set: ANTHROPIC_API_KEY".
  • Added secrets: inherit to each of the 7 docs-sweep jobs so the calling workflow passes all its secrets down to the reusable workflow.
  • Also removed the now-unused copilot-requests: write permission from each workflow's permissions: block (the Copilot engine was replaced by the Claude/LiteLLM engine).

Files changed

docs-applies-to-sweep.yml, docs-coherence-sweep.yml, docs-frontmatter-sweep.yml, docs-openings-sweep.yml, docs-staleness-sweep.yml, docs-style-sweep.yml, docs-typos-sweep.yml

Test plan

  • Trigger one of the sweep workflows manually after merge and confirm it no longer errors on missing ANTHROPIC_API_KEY.

🤖 Generated with Claude Code

…herit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@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 requested a review from alexandra5000 July 24, 2026 08:30
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.

1 participant