Route Claude workflows through the Stacklok LLM gateway - #6498
Merged
Conversation
Point the three Claude Code Action workflows at per-workflow gateway keys instead of a single shared Anthropic key, and send their traffic through the internal gateway. - claude.yml uses STACKLOK_GATEWAY_KEY_CLAUDE_TAG - issue-triage.yml uses STACKLOK_GATEWAY_KEY_ISSUE_TRIAGE - release-notes.yml uses STACKLOK_GATEWAY_KEY_RELEASE_NOTES - All three set ANTHROPIC_BASE_URL to the gateway endpoint
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6498 +/- ##
==========================================
- Coverage 78.19% 78.18% -0.02%
==========================================
Files 769 769
Lines 75049 75049
==========================================
- Hits 58684 58675 -9
- Misses 16360 16369 +9
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
amirejaz
approved these changes
Sep 3, 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
ANTHROPIC_API_KEYsecret with three per-workflow gateway keys, and setANTHROPIC_BASE_URLso all Claude Code Action traffic routes throughhttps://llm-gateway.stacklok.dev/anthropic:claude.yml(Claude PR Assistant) now usesSTACKLOK_GATEWAY_KEY_CLAUDE_TAGissue-triage.ymlnow usesSTACKLOK_GATEWAY_KEY_ISSUE_TRIAGErelease-notes.ymlnow usesSTACKLOK_GATEWAY_KEY_RELEASE_NOTESType of change
Test plan
Verified via
grepthat no workflow still referencessecrets.ANTHROPIC_API_KEY, and that each workflow sets exactly oneSTACKLOK_GATEWAY_KEY_*secret plusANTHROPIC_BASE_URL. These are GitHub Actions YAML changes only — there is no local build/test path that exercises them; correctness will be confirmed by the next live trigger of each workflow.Does this introduce a user-facing change?
No — internal CI/automation configuration only.
Special notes for reviewers
The three new secrets (
STACKLOK_GATEWAY_KEY_RELEASE_NOTES,STACKLOK_GATEWAY_KEY_ISSUE_TRIAGE,STACKLOK_GATEWAY_KEY_CLAUDE_TAG) must exist in the repo/org secrets store before merge, or these workflows will fail on their next trigger. The oldANTHROPIC_API_KEYsecret can be removed once this is merged and verified, if it's not used elsewhere.Generated with Claude Code