mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-15 18:46:31 +00:00
INF-2341 Add step to install PSScriptAnalyzer module
This commit is contained in:
parent
7327f57f8f
commit
c5a86784db
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ RUN wget -O powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/
|
|||
chmod +x /opt/microsoft/powershell/7/pwsh; \
|
||||
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
||||
|
||||
# Install PSScriptAnalyzer
|
||||
RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted; \
|
||||
Install-Module PSScriptAnalyzer -ErrorAction Stop }
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue