Skip to content

Analyzing source code for 50/merge by @aldrichtr #24

Analyzing source code for 50/merge by @aldrichtr

Analyzing source code for 50/merge by @aldrichtr #24

Workflow file for this run

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