Skip to content

[release/dnup] Cut over dotnetup bootstrap to versioned signed daily aka.ms link#55154

Merged
nagilson merged 5 commits into
dotnet:release/dnupfrom
nagilson:nagilson-dnup-versioned-script
Jul 7, 2026
Merged

[release/dnup] Cut over dotnetup bootstrap to versioned signed daily aka.ms link#55154
nagilson merged 5 commits into
dotnet:release/dnupfrom
nagilson:nagilson-dnup-versioned-script

Conversation

@nagilson

@nagilson nagilson commented Jul 6, 2026

Copy link
Copy Markdown
Member

Part 3 of migrating dotnetup bootstrap scripts to versioned, signed daily aka.ms links, targeting release/dnup. Tracks #54990. Companion to the main PR #55153.

Codeflow can handle the aka.ms link part but not the readme.md update so I opened this PR as well.

README: make the signature actually verifiable

iwr | iex runs the script as an in-memory expression and bypasses execution-policy signature checks entirely. The README now documents a save-then-run PowerShell pattern so the Authenticode signature is honored, keeping the one-liner as a convenience alternative.

Not included

  • Retiring/repointing the legacy vanity link aka.ms/dotnetup/get-dotnetup.* is an aka.ms infra change, not a repo change.

Repoint eng/dotnetup-shared.{ps1,sh} and the dotnetup README download snippets off the legacy raw-GitHub vanity link (aka.ms/dotnetup/get-dotnetup.*) to the signed, version-stable https://aka.ms/dotnet/dotnetup/daily/get-dotnetup.{ps1,sh} link. Document a save-then-run PowerShell pattern so the Authenticode signature is actually verified (iwr | iex bypasses execution policy).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 6, 2026 20:40

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 dotnetup bootstrap scripts and documentation to use the new version-stable, signed daily aka.ms endpoints for get-dotnetup.{ps1,sh}, moving consumers off the legacy raw-GitHub vanity links.

Changes:

  • Repointed eng/dotnetup-shared.{sh,ps1} fallback download URLs to https://aka.ms/dotnet/dotnetup/daily/get-dotnetup.*.
  • Updated the dotnetup README install snippets to use the new URLs.
  • Added README guidance for Windows to “save then run” so PowerShell Authenticode signature verification can apply (with the one-liner kept as an option).

Reviewed changes

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

File Description
eng/dotnetup-shared.sh Updates the fallback getter URL to the new daily aka.ms endpoint.
eng/dotnetup-shared.ps1 Updates the fallback getter URL to the new daily aka.ms endpoint.
documentation/general/dotnetup/README.md Updates download snippets and documents signature-verifiable PowerShell install flow.

Comment thread documentation/general/dotnetup/README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nagilson nagilson requested a review from a team July 6, 2026 21:06
Per PR feedback, use the shorter https://aka.ms/dotnetup/get-dotnetup.*
vanity redirects in the getting started instructions while keeping the
versioned signed daily link for the CI bootstrap scripts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nagilson

nagilson commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

@dsplaisted Do you own the https://aka.ms/dotnetup/get-dotnetup.ps1 link? I don't seem to have access to it in the portal to move it to the new version, and I don't see how arcade would point to a raw gh file.

Probably shouldn't merge this PR until then since it tells users to verify the signature on the link that doesnt provide a signature.

@nagilson nagilson enabled auto-merge July 7, 2026 21:32
@nagilson

nagilson commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

@baronfel had permission, ty!

@nagilson nagilson merged commit f3a1268 into dotnet:release/dnup Jul 7, 2026
31 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