From 5ef64d0eff426d3817e90890445a4d5bd812c2d9 Mon Sep 17 00:00:00 2001 From: Kevin Rowlandson Date: Wed, 1 Jul 2020 08:34:01 +0100 Subject: [PATCH] Explicitly set -Scope AllUsers for PSSA Module --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cebdf2a8..47c46881 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ RUN mkdir -p /opt/microsoft/powershell/7 \ | xargs -n 1 wget -O - \ | tar -xzC /opt/microsoft/powershell/7 \ && 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 #