Skip to content

Commit

Permalink
Use psscriptanalayzer github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 25, 2024
1 parent d9f4fdf commit b6380bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pssanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ on:

jobs:
analyze:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
- run: pwsh ./powershell-script-analyzer.ps1
- name: Run PS script analyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f
with:
path: .\
recurse: true
output: results.sarif
excludeRule: '"PSUseSingularNouns"'
24 changes: 0 additions & 24 deletions powershell-script-analyzer.ps1

This file was deleted.

3 changes: 0 additions & 3 deletions powershell-script-analyzer.psd1

This file was deleted.

0 comments on commit b6380bc

Please sign in to comment.