Skip to content

Sign and publish get-dotnetup.ps1 script - #54984

Merged
nagilson merged 3 commits into
dotnet:release/dnupfrom
nagilson:nagilson-sign-get-dotnetup-script
Jun 30, 2026
Merged

nagilson merged 3 commits into
dotnet:release/dnupfrom
nagilson:nagilson-sign-get-dotnetup-script

Conversation

@nagilson

@nagilson nagilson commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Resolves #54777

  • Signs the get-dotnetup.ps1 script but not the .sh script

  • Prepares to publish the get-dotnetup script so it can be consumed via a /daily/ url, as right now the url is generic, unversioned, and pointing at the raw github file which prevents signing.

  • An arcade change is needed to pickup that artifact and publish it as well. This has been merged:
    Publish get-dotnetup scripts alongside dotnetup arcade#17053

  • A build can be viewed here but we need an actual automated CI run to get the URL: https://aka.ms/dotnet/dotnetup/daily/get-dotnetup.ps1 to work.

The script gets rejected by powershell if it's unsigned hence the motivation to do this.

Before:
image

Now: (on sandbox)
image

Resolves dotnet#54777

Prepare to publish the get-dotnetup script so it can be consumed via a /daily/ url, as right now the url is generic, unversioned, and pointing at the raw github file which prevents signing.

An arcade change is needed to pickup that artifact and publish it as well.

The script gets rejected by powershell if it's unsigned hence the motivation to do this.
@nagilson
nagilson marked this pull request as ready for review June 30, 2026 20:39
@nagilson
nagilson requested a review from a team as a code owner June 30, 2026 20:39
Copilot AI review requested due to automatic review settings June 30, 2026 20:39

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 enables Authenticode signing and official publishing of the dotnetup bootstrap scripts (notably get-dotnetup.ps1) by staging them into build artifacts, registering them for signing, and ensuring they publish under the dotnetup/<version>/ blob prefix so Arcade can generate /daily/ aka.ms links.

Changes:

  • Stages scripts/get-dotnetup.ps1 and scripts/get-dotnetup.sh into $(ArtifactsBinDir)dotnetup-scripts on the win-x64 leg.
  • Adds signing metadata for get-dotnetup.ps1 (and explicitly marks the .sh as unsigned) and registers both scripts as blob artifacts with checksum sidecars.
  • Adds publishing metadata to place the scripts (and their .sha512 files) under dotnetup/$(DotnetupVersion)/ in blob storage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Installer/dotnetup/dotnetup.csproj Stages bootstrap scripts into artifacts for downstream signing/publishing.
eng/Signing.props Adds signing configuration and registers staged scripts as blob artifacts.
eng/Publishing.props Sets RelativeBlobPath so scripts publish under the dotnetup version prefix (enabling /daily/ shortlinks).

Comment thread src/Installer/dotnetup/dotnetup.csproj Resolved
@nagilson
nagilson requested a review from joeloff June 30, 2026 20:50
@nagilson
nagilson enabled auto-merge June 30, 2026 20:50
@nagilson
nagilson disabled auto-merge June 30, 2026 21:16
@nagilson
nagilson merged commit d0e1c4a into dotnet:release/dnup Jun 30, 2026
22 of 30 checks passed
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.

3 participants