Skip to content

Commit

Permalink
Added SecurityCodeScan to the repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
AZProductions committed Jul 26, 2021
1 parent 960ef3f commit e839f22
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/securitycodescan-analysis.yml
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

0 comments on commit e839f22

Please sign in to comment.