Skip to content

Commit

Permalink
Update pwsh-analyzer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ColDog5044 committed Aug 25, 2024
1 parent ad64253 commit d737341
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pwsh-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:

# Analyze PowerShell code
- name: Run PSScriptAnalyzer
shell: pwsh
run: |
Invoke-ScriptAnalyzer -Path ./src -Recurse -ExcludeRule *WriteHost,PSAvoidUsingInvokeExpression,PSUseBOMForUnicodeEncodedFile,PSUseShouldProcessForStateChangingFunctions,PSUseSingularNouns -Severity Error,Warning -EnableExit
uses: microsoft/psscriptanalyzer-action@v1.0
with:
path: .\src
recurse: true
severity: '"Error", "Warning"'
enableExit: true
output: results.sarif

0 comments on commit d737341

Please sign in to comment.