Skip to content

Commit 822b150

Browse files
authored
Create securitycodescan.yml (#27)
1 parent 1d92ef4 commit 822b150

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow integrates SecurityCodeScan with GitHub's Code Scanning feature
7+
# SecurityCodeScan is a vulnerability patterns detector for C# and VB.NET
8+
9+
name: SecurityCodeScan
10+
11+
on:
12+
push:
13+
branches: [ "main" ]
14+
pull_request:
15+
# The branches below must be a subset of the branches above
16+
branches: [ "main" ]
17+
schedule:
18+
- cron: '33 14 * * 2'
19+
20+
jobs:
21+
SCS:
22+
runs-on: windows-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: nuget/setup-nuget@04b0c2b8d1b97922f67eca497d7cf0bf17b8ffe1
26+
- uses: microsoft/setup-msbuild@v1.0.2
27+
28+
- name: Set up projects for analysis
29+
uses: security-code-scan/security-code-scan-add-action@f8ff4f2763ed6f229eded80b1f9af82ae7f32a0d
30+
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
34+
- name: Build
35+
run: dotnet build --no-restore
36+
37+
- name: Convert sarif for uploading to GitHub
38+
uses: security-code-scan/security-code-scan-results-action@cdb3d5e639054395e45bf401cba8688fcaf7a687
39+
40+
- name: Upload sarif
41+
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)