Skip to content

Commit 2f01378

Browse files
committed
InferSharp code scan workflow
1 parent addc748 commit 2f01378

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PR Analysis InferSharp
2+
3+
on:
4+
workflow_run:
5+
workflows: [ "PR Validation" ]
6+
branches: [ dev, main ]
7+
types:
8+
- completed
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
download-and-infersharp:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
steps:
22+
- name: Download binaries artifact from PR Validation workflow
23+
id: download-artifact
24+
uses: dawidd6/action-download-artifact@v2
25+
with:
26+
workflow: pr-validation.yml
27+
workflow_conclusion: success
28+
name: bin-net6
29+
path: bin-net6
30+
branch: ${{ github.ref }}
31+
check_artifacts: true
32+
search_artifacts: true
33+
34+
- name: Run Infer#
35+
uses: microsoft/[email protected]
36+
id: runinfersharp
37+
with:
38+
binary-path: bin-net6
39+
40+
- name: Upload SARIF output to GitHub Security Center
41+
uses: github/codeql-action/upload-sarif@v2
42+
with:
43+
sarif_file: infer-out/report.sarif

.github/workflows/pr-validation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ jobs:
1515

1616
- name: Run build and tests
1717
run: ./Build.ps1
18+
19+
- name: Upload binaries artifact for InferSharp workflow
20+
uses: actions/upload-artifact@v3
21+
with:
22+
name: bin-net6
23+
path: src\Serilog.Sinks.MSSqlServer\bin\Release\net6.0

serilog-sinks-mssqlserver.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ 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-validation.yml = .github\workflows\pr-validation.yml
3029
.github\workflows\pr-analysis-codeql.yml = .github\workflows\pr-analysis-codeql.yml
3130
.github\workflows\pr-analysis-devskim.yml = .github\workflows\pr-analysis-devskim.yml
31+
.github\workflows\pr-analysis-infersharp.yml = .github\workflows\pr-analysis-infersharp.yml
32+
.github\workflows\pr-validation.yml = .github\workflows\pr-validation.yml
3233
README.md = README.md
3334
.github\workflows\release.yml = .github\workflows\release.yml
3435
EndProjectSection

0 commit comments

Comments
 (0)