mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-16 19:08:28 +00:00
INF-2341 Add step to install PSScriptAnalyzer module
This commit is contained in:
parent
53d0b3cafe
commit
695b0136e4
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ RUN wget -O powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/
|
||||||
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
||||||
|
|
||||||
# Install PSScriptAnalyzer
|
# Install PSScriptAnalyzer
|
||||||
RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose\; Install-Module PSScriptAnalyzer -Verbose -ErrorAction Stop }
|
RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose\; Install-Module PSScriptAnalyzer -Repository PSGallery -Scope AllUsers -Verbose }
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue