-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Update the scripts to fetch latest git version #11027
base: main
Are you sure you want to change the base?
Conversation
@@ -5,6 +5,6 @@ | |||
|
|||
Install-Binary -Type MSI ` | |||
-Url 'https://aka.ms/dacfx-msi' ` | |||
-ExpectedSignature 'C2048FB509F1C37A8C3E9EC6648118458AA01780' | |||
-ExpectedSignature '8F985BE8FD256085C90A95D3C74580511A1DB975' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be separate PR
@@ -4,18 +4,13 @@ | |||
## Supply chain security: Git - checksum validation, Hub CLI - managed by package manager | |||
################################################################################ | |||
|
|||
# Install the latest version of Git for Windows | |||
|
|||
$downloadUrl = Resolve-GithubReleaseAssetUrl ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By refusing to use a function, you lose some of the functionality, e.g. download retries. Instead of rewriting the script itself, it is better to fix the Resolve-GithubReleaseAssetUrl
function
|
||
# Download URL and SHA256 checksum | ||
$downloadUrl = $asset.browser_download_url | ||
$externalHash = "83c618dcc50b63f0f7afc86a7a125169bd59559ff680683f1d915c45e05ff4cc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to hardcode the hash if it can be obtained automatically.
Description
This PR will
Related issue:
Check list