-
Notifications
You must be signed in to change notification settings - Fork 1.6k
36 lines (34 loc) · 1.05 KB
/
devskim.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
name: DevSkim
permissions: read-all
on:
push:
branches: [master, v2.dev, v3.dev]
pull_request:
branches: [master, v2.dev, v3.dev]
schedule:
- cron: '40 22 * * 0'
jobs:
lint:
name: DevSkim
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@3235f705386c4d47689dc564d5b0c2cd43340b64 # v1.0.7
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
with:
sarif_file: devskim-results.sarif