-
Notifications
You must be signed in to change notification settings - Fork 118
35 lines (30 loc) · 935 Bytes
/
Copy pathpsscriptanalyzer.yml
File metadata and controls
35 lines (30 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: PSScriptAnalyzer
on:
push:
paths:
- 'powershell/**'
- '.github/workflows/psscriptanalyzer.yml'
pull_request:
paths:
- 'powershell/**'
- '.github/workflows/psscriptanalyzer.yml'
permissions:
contents: read
security-events: write
jobs:
powershell:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f # v1.1
with:
path: .\powershell
recurse: true
excludeRule: '"PSUseShouldProcessForStateChangingFunctions"'
output: 'results.sarif'
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@fbcef3fba75224ed6476919775448de80b23cb15 # v3.32.0
with:
sarif_file: results.sarif