Skip to content

Add CLEANSCHEMA symbols #2

Add CLEANSCHEMA symbols

Add CLEANSCHEMA symbols #2

Workflow file for this run

name: 'PowerShell'
on:
push:
branches: [ "main", "releases/*" ]
paths: ["**.ps1", "**.psm1", "**.psd1", ".github/workflows/powershell.yaml" ]
pull_request:
branches: [ "main", "releases/*" ]
paths: ["**.ps1", "**.psm1", "**.psd1", ".github/workflows/powershell.yaml" ]
permissions:
contents: read
jobs:
PSScriptAnalyzer:
# https://github.com/microsoft/psscriptanalyzer-action
# For more information on PSScriptAnalyzer in general, see
# https://github.com/PowerShell/PSScriptAnalyzer
name: Run PSScriptAnalyzer
runs-on: ubuntu-latest
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f # v1.1
with:
path: .\
recurse: true
excludeRule: '"PSAvoidUsingInvokeExpression", "PSUseShouldProcessForStateChangingFunctions", "PSAvoidUsingWriteHost", "PSAvoidUsingCmdletAliases", "PSUseSingularNouns", "PSUseApprovedVerbs"'
output: results.sarif
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
with:
sarif_file: results.sarif
RunTests:
name: Run PS Tests
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run PS Tests
run: |
. (Join-Path "." "build/scripts/tests/runTests.ps1")