Skip to content

chore(ci): read Azure client/tenant IDs from repo variables#560

Open
einarwar wants to merge 1 commit into
mainfrom
chore/ci-publish-image-use-repo-vars
Open

chore(ci): read Azure client/tenant IDs from repo variables#560
einarwar wants to merge 1 commit into
mainfrom
chore/ci-publish-image-use-repo-vars

Conversation

@einarwar
Copy link
Copy Markdown
Contributor

Move the Azure app registration values used as Docker build args in publish-image.yaml out of the YAML and read them from repository variables instead.

AUTH_SCOPE is derived from AZURE_CLIENT_ID (api://<client-id>/api) so only two new variables are required.

Build arg Previous value Now reads
AUTH_SCOPE api://4a761bec-…/api api://${{ vars.AZURE_CLIENT_ID }}/api
CLIENT_ID 4a761bec-… ${{ vars.AZURE_CLIENT_ID }}
TENANT_ID 3aa4a235-… ${{ vars.AZURE_TENANT_ID }}

Why

Downstream forks of this template can now point at their own Azure app registration purely through Settings → Variables, without editing the workflow file.

Variables — already set

Both variables are already configured on this repo with the original values, so behaviour is unchanged after merge:

AZURE_CLIENT_ID = 4a761bec-628d-4c4b-860a-4903cbecc963
AZURE_TENANT_ID = 3aa4a235-b6e2-48d5-9195-7fcf05b459b0

Scope

  • deploy-to-radix.yaml also embeds the same IDs plus the Radix app name/user, but it's currently not invoked by any workflow — left out of this PR to keep the change focused. Happy to do that as a separate PR if/when those deploy jobs are re-enabled.

The Azure app registration values used as Docker build args
(AUTH_SCOPE, CLIENT_ID, TENANT_ID) are now read from the repository
variables AZURE_CLIENT_ID and AZURE_TENANT_ID instead of being
hardcoded in the workflow. AUTH_SCOPE is derived from AZURE_CLIENT_ID
(api://<client-id>/api) so only two variables are needed.

Downstream forks of this template can now point at their own Azure
app registration purely through Settings -> Variables, without
editing the workflow file.
@einarwar einarwar requested a review from a team as a code owner May 19, 2026 13:37
@einarwar einarwar requested a review from Copilot May 19, 2026 13:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces hardcoded Azure app registration IDs in the publish-image workflow with repository variable references, enabling downstream forks to configure their own Azure app registration via repo settings without modifying the workflow file.

Changes:

  • Replace hardcoded CLIENT_ID and TENANT_ID Docker build args with vars.AZURE_CLIENT_ID and vars.AZURE_TENANT_ID
  • Derive AUTH_SCOPE from AZURE_CLIENT_ID variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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