Skip to content

Install module

Install module #401

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