Skip to content

Commit cf6588e

Browse files
committed
Added PR code scanning
1 parent 191b5b3 commit cf6588e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/pr-codescan.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PR Code Scan
2+
3+
on:
4+
pull_request:
5+
branches: [ dev, main ]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-20.04
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Run DevSkim scanner
22+
uses: microsoft/DevSkim-Action@v1
23+
24+
- name: Upload DevSkim scan results to GitHub Security tab
25+
uses: github/codeql-action/upload-sarif@v2
26+
with:
27+
sarif_file: devskim-results.sarif

serilog-sinks-mssqlserver.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2626
CHANGES.md = CHANGES.md
2727
Directory.Packages.props = Directory.Packages.props
2828
.github\ISSUE_TEMPLATE.md = .github\ISSUE_TEMPLATE.md
29+
.github\workflows\pr-codescan.yml = .github\workflows\pr-codescan.yml
2930
.github\workflows\pr-validation.yml = .github\workflows\pr-validation.yml
3031
README.md = README.md
3132
.github\workflows\release.yml = .github\workflows\release.yml

0 commit comments

Comments
 (0)