Use repo variable for Anthropic base URL - #6672
Merged
Merged
Conversation
Move the llm-gateway base URL out of the Claude action workflows and into the ANTHROPIC_BASE_URL repo variable. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6672 +/- ##
==========================================
- Coverage 79.11% 79.11% -0.01%
==========================================
Files 785 785
Lines 78460 78458 -2
==========================================
- Hits 62076 62070 -6
- Misses 16379 16383 +4
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
danbarr
approved these changes
Sep 16, 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
The Anthropic llm-gateway base URL is hardcoded in the Claude action workflows, so repointing the gateway means editing every workflow file. This moves it into a repo-level
ANTHROPIC_BASE_URLvariable so the URL can be changed in one place.https://llm-gateway.stacklok.dev/anthropicwith${{ vars.ANTHROPIC_BASE_URL }}inclaude.yml,issue-triage.ymlandrelease-notes.yml(3 occurrences).ANTHROPIC_BASE_URLvariable must be set before this merges — if unset, the env var resolves to an empty string and the action falls back to the public Anthropic API.Type of change
Test plan
Workflow-only change with no code surface:
yq -e '.'parses cleanly on all 3 changed files, and the parsed value of the env var is byte-identical to the already-mergeddocs-websitereference that is running in production.git diffreviewed line by line: 3 single-line replacements, nothing else touched.API Compatibility
v1beta1API, OR theapi-break-allowedlabel is applied and the migration guidance is described above.Changes
.github/workflows/claude.ymlANTHROPIC_BASE_URLnow reads fromvars.ANTHROPIC_BASE_URL.github/workflows/issue-triage.yml.github/workflows/release-notes.ymlDoes this introduce a user-facing change?
No.