Skip to content

Commit 495995f

Browse files
pwshBotTravisEz13
andauthored
[release/v7.4] Github Workflow cleanup (#26334)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
1 parent fa7640b commit 495995f

File tree

3 files changed

+7
-33
lines changed

3 files changed

+7
-33
lines changed

.github/workflows/AssignPrs.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

tools/download.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
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)

tools/install-powershell.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)