Use Invoke-Az to suppress python warnings #395
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: Analyze PowerShell | |
on: push | |
permissions: | |
security-events: write # Required to upload SARIF results | |
jobs: | |
analyze-powershell-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
- name: Run PSScriptAnalyzer | |
uses: microsoft/psscriptanalyzer-action@main | |
with: | |
path: .\ | |
recurse: true | |
output: results.sarif | |
- name: Upload PowerShell SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: results.sarif | |
# Optional category for the results | |
# Used to differentiate multiple results for one commit | |
category: PSScriptAnalyzer |