[release/v7.5] Github Workflow cleanup (#26389)

This commit is contained in:
Travis Plunk
2025-11-05 18:53:59 +00:00
committed by GitHub
parent 83c94d32ca
commit ce09a42fc8
7 changed files with 7 additions and 160 deletions
+3 -1
View File
@@ -1 +1,3 @@
bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh)
# Pin to specific commit for security (OpenSSF Scorecard requirement)
# Pinned commit: 26bb188c8 - "Improve ValidateLength error message consistency and refactor validation tests" (2025-10-12)
bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/26bb188c8be0cda6cb548ce1a12840ebf67e1331/tools/install-powershell.sh)
+4 -2
View File
@@ -26,7 +26,9 @@ install(){
#gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
local VERSION="1.2.0"
local gitreposubpath="PowerShell/PowerShell/master"
# Pin to specific commit for security (OpenSSF Scorecard requirement)
# Pinned commit: 26bb188c8 - "Improve ValidateLength error message consistency and refactor validation tests" (2025-10-12)
local gitreposubpath="PowerShell/PowerShell/26bb188c8be0cda6cb548ce1a12840ebf67e1331"
local gitreposcriptroot="https://raw.githubusercontent.com/$gitreposubpath/tools"
local gitscriptname="install-powershell.psh"
@@ -125,7 +127,7 @@ install(){
if [[ $osname = *SUSE* ]]; then
DistroBasedOn='suse'
REV=$(source /etc/os-release; echo $VERSION_ID)
fi
fi
OS=$(lowercase $OS)
DistroBasedOn=$(lowercase $DistroBasedOn)
fi