-
Notifications
You must be signed in to change notification settings - Fork 22
60 lines (55 loc) · 1.32 KB
/
build.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: PSScriptAnalyzer
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- "*.md"
- "*.txt"
- "*.yml"
- "*.json"
- "*.toml"
- "*.gitkeep"
- .editorconfig
- .github/**
- .gitignore
- .gitattributes
- .gitmodules
pull_request:
branches: [main]
paths-ignore:
- "*.md"
- "*.txt"
- "*.yml"
- "*.json"
- "*.toml"
- "*.gitkeep"
- .editorconfig
- .github/**
- .gitignore
- .gitattributes
- .gitmodules
permissions:
contents: read
jobs:
build:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by upload-sarif to get the Action run status
name: PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run PSScriptAnalyzer
uses: microsoft/[email protected]
with:
path: ./
recurse: true
output: results.sarif
settings: ./PSScriptAnalyzerSettings.psd1
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif