Skip to content

[release/10.0] Allow use of internal sdk#16267

Merged
mmitche merged 2 commits intorelease/10.0from
fix-build-internal-net10
Nov 6, 2025
Merged

[release/10.0] Allow use of internal sdk#16267
mmitche merged 2 commits intorelease/10.0from
fix-build-internal-net10

Conversation

@rmarinho
Copy link
Member

@rmarinho rmarinho commented Nov 4, 2025

Backport of changes made on #16251 since when I update the dependencies is trying to override the changes on our repos

This pull request updates the build and post-build pipelines to improve support for internal runtime feeds by adding new parameters and steps for securely accessing internal resources. The changes ensure that internal runtime variables are populated and passed through the relevant scripts and templates, enhancing the automation and security of the build process.

Pipeline and Template Enhancements:

  • Added steps to populate internal runtime variables using the enable-internal-sources.yml and enable-internal-runtimes.yml templates in both the publish-build-assets.yml and post-build.yml files, ensuring internal feeds are accessible during builds. [1] [2]
  • Updated the invocation of PowerShell scripts and Azure CLI tasks to include new parameters for -runtimeSourceFeed and -runtimeSourceFeedKey, passing internal feed URLs and credentials to support secure access to internal runtime packages. [1] [2] [3] [4]

Script Parameter Updates:

  • Added new optional parameters runtimeSourceFeed and runtimeSourceFeedKey to publish-using-darc.ps1, redact-logs.ps1, and sdk-task.ps1 to accept internal feed information, making the scripts more flexible and secure for internal builds. [1] [2] [3]

# Populate internal runtime variables.
- template: /eng/common/templates/steps/enable-internal-sources.yml
parameters:
legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw)
Copy link
Member

Choose a reason for hiding this comment

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

This legacy credential shouldn't be required if the org is dnceng (project is internal)

Copy link
Member Author

Choose a reason for hiding this comment

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

But can t this run on devdiv too ?

Copy link
Member

Choose a reason for hiding this comment

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

Right...I would conditionalzie the passing of this property on the project name. If devdiv, pass, otherwise don't.

@akoeplinger
Copy link
Member

haven't checked but please make sure the follow-up fixes are included here:

@rmarinho
Copy link
Member Author

rmarinho commented Nov 5, 2025

Hum the code changes are all on this PR, the only doubt is the white space fixes.


- task: NuGetAuthenticate@1

# Populate internal runtime variables.
Copy link
Member

Choose a reason for hiding this comment

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

nit: formatting

@premun premun changed the title [net10.0] Allow use of internal sdk [release/10.0] Allow use of internal sdk Nov 6, 2025
scriptPath: $(System.DefaultWorkingDirectory)/eng/common/sdk-task.ps1
arguments: -task PublishBuildAssets -restore -msbuildEngine dotnet
-runtimeSourceFeed https://ci.dot.net/internal
-runtimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
Copy link
Member

Choose a reason for hiding this comment

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

You should go through the PR and add ' so that you don't hit the same issue

Suggested change
-runtimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
-runtimeSourceFeedKey '$(dotnetbuilds-internal-container-read-token-base64)'

@rmarinho rmarinho requested a review from a team as a code owner November 6, 2025 13:07
Address feedback

Fix identation

Fix more token usage

Fix build
@rmarinho rmarinho force-pushed the fix-build-internal-net10 branch from a0f0841 to b17e669 Compare November 6, 2025 13:24
@mmitche mmitche merged commit 412dad5 into release/10.0 Nov 6, 2025
10 checks passed
@mmitche mmitche deleted the fix-build-internal-net10 branch November 6, 2025 15:10
akoeplinger added a commit that referenced this pull request Nov 19, 2025
@akoeplinger akoeplinger mentioned this pull request Nov 19, 2025
1 task
akoeplinger added a commit that referenced this pull request Nov 19, 2025
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.

4 participants