Skip to content

Add CLEANSCHEMA symbols #1

Add CLEANSCHEMA symbols

Add CLEANSCHEMA symbols #1

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@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
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")