File tree Expand file tree Collapse file tree 3 files changed +7
-33
lines changed
Expand file tree Collapse file tree 3 files changed +7
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- bash <( curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh)
1+ # Pin to specific commit for security (OpenSSF Scorecard requirement)
2+ # Pinned commit: 26bb188c8 - "Improve ValidateLength error message consistency and refactor validation tests" (2025-10-12)
3+ bash <( curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/26bb188c8be0cda6cb548ce1a12840ebf67e1331/tools/install-powershell.sh)
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ install(){
2626 # gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
2727
2828 local VERSION=" 1.2.0"
29- local gitreposubpath=" PowerShell/PowerShell/master"
29+ # Pin to specific commit for security (OpenSSF Scorecard requirement)
30+ # Pinned commit: 26bb188c8 - "Improve ValidateLength error message consistency and refactor validation tests" (2025-10-12)
31+ local gitreposubpath=" PowerShell/PowerShell/26bb188c8be0cda6cb548ce1a12840ebf67e1331"
3032 local gitreposcriptroot=" https://raw.githubusercontent.com/$gitreposubpath /tools"
3133 local gitscriptname=" install-powershell.psh"
3234
@@ -121,7 +123,7 @@ install(){
121123 if [[ $osname = * SUSE* ]]; then
122124 DistroBasedOn=' suse'
123125 REV=$( source /etc/os-release; echo $VERSION_ID )
124- fi
126+ fi
125127 OS=$( lowercase $OS )
126128 DistroBasedOn=$( lowercase $DistroBasedOn )
127129 fi
You can’t perform that action at this time.
0 commit comments