Explicitly set -Scope AllUsers for PSSA Module

This commit is contained in:
Kevin Rowlandson 2020-07-01 08:34:01 +01:00
parent 509f767b71
commit 5ef64d0eff
No known key found for this signature in database
GPG key ID: F33348ACAE26BE84

View file

@ -49,7 +49,7 @@ RUN mkdir -p /opt/microsoft/powershell/7 \
| xargs -n 1 wget -O - \ | xargs -n 1 wget -O - \
| tar -xzC /opt/microsoft/powershell/7 \ | tar -xzC /opt/microsoft/powershell/7 \
&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \ && ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -Repository PSGallery -RequiredVersion ${PSSA_VERSION} -Force' && pwsh -c 'Install-Module -Name PSScriptAnalyzer -Repository PSGallery -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'
##################### #####################
# Run Pip3 Installs # # Run Pip3 Installs #