Repository navigation
ci: OIDC-only private feed, drop PAT from Copilot setup, simplify dev image push - #1735
Open
BenjaminMichaelis wants to merge 2 commits into
Open
BenjaminMichaelis wants to merge 2 commits into
BenjaminMichaelis wants to merge 2 commits into
Conversation
OIDC sign-in for the private NuGet feed worked on the first main run after #1729, so remove the AZURE_DEVOPS_PAT fallback from build-and-test and make get-feed-token.sh OIDC-only. Copilot setup steps: drop the private-feed source and PAT. Their restore never sets AccessToNugetFeed (default false), so the private package is never referenced; use the same public NuGet cache as PR builds. Dev image push: read the pushed digest directly with index .RepoDigests 0 and drop the extra ACR re-read of the tag. Every later step deploys by digest, so a tag moving afterwards cannot change what is deployed. Dependabot's private registry still uses the PAT (Dependabot secrets): its OIDC subject is not documented, so it moves in a separate change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- build-and-test: the host restore, build and tests use placeholder content (AccessToNugetFeed=false), so drop their Azure login and feed credentials steps and share the public NuGet cache with PR builds. Only the container build signs in for the private feed. - Drop the dead pull_request condition on the container build step (the job only runs on push and workflow_dispatch). - deploy-production: drop the cancel-queued-runs script (it cancelled 0 runs in every recent deploy; the deploy-production concurrency group already serializes deploys) and with it the actions: write permission; drop fetch-depth: 0 (tagging HEAD needs no history); drop the post-import tag re-read (later steps deploy by digest). - Remove the Azure logout steps; GitHub-hosted runners are discarded after each job. - pr-build-and-test: one test step with conditional coverage arguments. - frontend-build: check the Node version on one matrix leg only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Follow-up to #1729.
What changes
Private feed: OIDC only, and only where it's needed
mainrun after ci: harden Actions and Dependabot supply chain (SHA pins, automerge binding, cooldown, feed OIDC, cache split, digest promotion) #1729 signed in with OIDC and built the image with the token. This PR removes theAZURE_DEVOPS_PATfallback and makesscripts/nuget/get-feed-token.shOIDC-only.build-and-testuse placeholder content (AccessToNugetFeed=false); the post-merge log has noContentFeedNugetreferences outside the container build. Their Azure login and feed-credentials steps are gone, and they share the public NuGet cache with PR builds. Only the container build signs in.Simpler build and deploy
az acrre-read of the tag.deploy-productionconcurrency group already serializes deploys. This also dropsactions: write.azure/CLIpulled a container just to runaz logout). GitHub-hosted runners are discarded after each job.fetch-depth: 0from the production checkout, which tagging HEAD doesn't need, and a deadpull_requestcondition on the container build.actionlintpasses on both changed workflows. Net: about 200 fewer lines.After merge
AZURE_DEVOPS_PATcopies: the Actions repository secret and thecopilotenvironment secret.AZURE_DEVOPS_PATandAZURE_DEVOPS_PAT_USERNAME) for the private registry independabot.yml. Dependabot supports OIDC for Azure DevOps, but GitHub doesn't document the subject its token presents, so moving it needs a short trial. After that, the PAT can be revoked.🤖 Generated with Claude Code