Analyzing source code for 50/merge by @aldrichtr #24
Workflow file for this run
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: '[cicd] Analyze PowerShell source code' | |
run-name: Analyzing source code for ${{ github.ref_name }} by @${{ github.actor }} | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
workflow_dispatch: | |
env: | |
settings_file: 'PSScriptAnalyzerSettings.psd1' | |
jobs: | |
Analyze: | |
name: Analyze source with PSSA | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run PSScriptAnalyzer | |
uses: microsoft/[email protected] | |
with: | |
path: '.\source' | |
recurse: true | |
settings: ${{ env.settings_file }} | |
output: pssa-results.sarif | |
- name: Upload SARIF results file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: pssa-results.sarif |