Skip to content

CodeQL

CodeQL #541

name: "CodeQL"
on:
push:
paths:
- src/*
pull_request:
paths:
- src/*
schedule:
- cron: '0 5 * * 2'
jobs:
CodeQL-Build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: csharp
- name: Build OSS Gadget
run: |
dotnet restore OSSGadget.sln
dotnet build -c Release -p:SelfContained=false
working-directory: ./src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1