Skip to content

Use build identity for internal feeds instead of expired dn-bot-dnceng-artifact-feeds-rw PAT (release/9.0) - #67853

Merged
wtgodbe merged 1 commit into
release/9.0from
missymessa/release-9.0-internal-feeds-build-identity
Jul 16, 2026
Merged

Use build identity for internal feeds instead of expired dn-bot-dnceng-artifact-feeds-rw PAT (release/9.0)#67853
wtgodbe merged 1 commit into
release/9.0from
missymessa/release-9.0-internal-feeds-build-identity

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

Internal official builds on this servicing branch are failing package restore with HTTP 401 on all darc-int-* and dotnet-*-internal feeds (e.g. build 3022753). Root cause: the dn-bot-dnceng-artifact-feeds-rw PAT was removed from the arcade secret manifest (arcade PR #17079, 2026-07-08) and expired 2026-07-11; rotation had stopped, so legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) now injects an expired/empty token.

Change

Remove the legacyCredential PAT parameter from the enable-internal-sources step. For the internal project the template then takes the build-identity path (SetupNugetSources without a password + NuGetAuthenticate@1), authenticating internal feeds via the pipeline's build service identity. This matches how main already works.

Validation

  • dnceng/internal Project Build Service has ≥reader on the affected feeds: contributor on darc-int-*, collaborator on dotnet9-internal, contributor on dotnet8-internal.
  • aspnetcore main builds restore internal feeds successfully with no PAT.

Tracking: dnceng/internal AB#11679 (live-site AB#11678).

…expired dn-bot-dnceng-artifact-feeds-rw PAT

The dn-bot-dnceng-artifact-feeds-rw PAT was removed from the arcade secret
manifest (PR #17079) and expired 2026-07-11, breaking internal feed restore
(401 on darc-int-* and dotnet-*-internal feeds) on this servicing branch.
Removing legacyCredential lets enable-internal-sources take the internal-project
path (SetupNugetSources + NuGetAuthenticate@1), authenticating via the build
service identity, which has read on these feeds. Matches main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 331a413c-8b88-448e-8913-6ca49130a046
@missymessa
missymessa marked this pull request as ready for review July 16, 2026 19:47
@missymessa
missymessa requested review from a team and wtgodbe as code owners July 16, 2026 19:47
Copilot AI review requested due to automatic review settings July 16, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the servicing branch’s official build pipeline to stop using an expired/removed PAT for authenticating to internal Azure Artifacts feeds, and instead rely on the pipeline’s build identity-based authentication path already supported by the shared enable-internal-sources template.

Changes:

  • Removed the legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) parameter from the enable-internal-sources step so the template falls back to its non-PAT behavior (SetupNugetSources without password + NuGetAuthenticate@1).

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

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Jul 16, 2026
@wtgodbe

wtgodbe commented Jul 16, 2026

Copy link
Copy Markdown
Member

Merging to unblock internal builds

@wtgodbe
wtgodbe merged commit 3184000 into release/9.0 Jul 16, 2026
11 of 26 checks passed
@wtgodbe
wtgodbe deleted the missymessa/release-9.0-internal-feeds-build-identity branch July 16, 2026 20:20
This was referenced Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants