-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
960ef3f
commit e839f22
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow integrates SecurityCodeScan with GitHub's Code Scanning feature | ||
# SecurityCodeScan is a vulnerability patterns detector for C# and VB.NET | ||
|
||
name: SecurityCodeScan | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'scr/*' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'src/*' | ||
|
||
jobs: | ||
SCS: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: nuget/setup-nuget@v1.0.5 | ||
- uses: microsoft/setup-msbuild@v1.0.2 | ||
|
||
- name: Set up projects for analysis | ||
uses: security-code-scan/security-code-scan-add-action@main | ||
|
||
- name: Restore dependencies | ||
working-directory: ./src | ||
run: dotnet restore | ||
|
||
- name: Build | ||
working-directory: ./src | ||
run: dotnet build --no-restore | ||
|
||
- name: Convert sarif for uploading to GitHub | ||
uses: security-code-scan/security-code-scan-results-action@main | ||
|
||
- name: Upload sarif | ||
uses: github/codeql-action/upload-sarif@v1 |