Not interested in figuring out codeql's action right now #14
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 | |
# defaults: | |
# run: | |
# shell: pwsh | |
# on: | |
# push: | |
# branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
# schedule: | |
# - cron: '22 1 * * 3' | |
# permissions: | |
# contents: read | |
# jobs: | |
# build: | |
# permissions: | |
# contents: read | |
# security-events: write | |
# name: PSScriptAnalyzer | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v3 | |
# - name: Install AnyPackage | |
# run: Install-Module AnyPackage -Force -AllowClobber | |
# - name: Install ConvertToSARIF | |
# run: Install-Module ConvertToSARIF -Force | |
# - name: Run PSScriptAnalyzer | |
# run: | | |
# Import-Module AnyPackage, ConvertToSARIF | |
# Invoke-ScriptAnalyzer -Path . -Recurse | ConvertTo-SARIF -FilePath results.sarif | |
# - name: Upload SARIF results file | |
# uses: github/codeql-action/upload-sarif@v2 | |
# with: | |
# sarif_file: results.sarif |