Skip to content

SecurityCodeScan

SecurityCodeScan #221

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# 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: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '0 12 * * 1-5'
jobs:
SCS:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: nuget/setup-nuget@v1
- uses: microsoft/setup-msbuild@v1
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
7.0.x
- name: Set up projects for analysis
uses: security-code-scan/security-code-scan-add-action@v1
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Convert sarif for uploading to GitHub
uses: security-code-scan/security-code-scan-results-action@v1
- name: Upload sarif
uses: github/codeql-action/upload-sarif@v3