From 024c131f4a2bdcbde8ab9fe54fbaf82c5a4fb8b8 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein-Kousathana Date: Wed, 16 Sep 2026 17:28:30 +0200 Subject: [PATCH] Use repo variable for Anthropic base URL 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) --- .github/workflows/claude.yml | 2 +- .github/workflows/issue-triage.yml | 2 +- .github/workflows/release-notes.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 58dcd6937a..44184e6ac2 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -75,7 +75,7 @@ jobs: id: claude uses: anthropics/claude-code-action@19dda84776b3518d98b8798e591daee763049ed3 # v1.0.220 env: - ANTHROPIC_BASE_URL: https://llm-gateway.stacklok.dev/anthropic + ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }} with: anthropic_api_key: ${{ secrets.STACKLOK_GATEWAY_KEY_CLAUDE_TAG }} # Security: Restrict tools to prevent arbitrary code execution. diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index a7038f6c27..fd8dc5ea13 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -22,7 +22,7 @@ jobs: - name: Run Claude Code for Issue Triage uses: anthropics/claude-code-action@19dda84776b3518d98b8798e591daee763049ed3 # v1.0.220 env: - ANTHROPIC_BASE_URL: https://llm-gateway.stacklok.dev/anthropic + ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }} with: prompt: | You are an issue triage assistant. Analyze issue #${{ github.event.issue.number }} in ${{ github.repository }} and apply appropriate labels. diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 9694f20adc..84e132147b 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -112,7 +112,7 @@ jobs: # via GH_TOKEN. Read access is sufficient — publishing happens in a # later, deterministic step, not by the model. GH_TOKEN: ${{ github.token }} - ANTHROPIC_BASE_URL: https://llm-gateway.stacklok.dev/anthropic + ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }} with: anthropic_api_key: ${{ secrets.STACKLOK_GATEWAY_KEY_RELEASE_NOTES }} # Hand the action a token explicitly so it does not try to mint one via