Install module #401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PSScriptAnalyzer | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.ps1' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.ps1' | |
jobs: | |
build: | |
name: analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run PSScriptAnalyzer | |
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f | |
with: | |
path: ./scripts | |
recurse: true | |
output: results.sarif | |
# Upload the SARIF file generated in the previous step | |
- name: Upload SARIF results file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: results.sarif |