Skip to content

Scheduled GitHub CodeQL #86

Scheduled GitHub CodeQL

Scheduled GitHub CodeQL #86

name: "Scheduled GitHub CodeQL"
on:
schedule:
- cron: '0 06 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
###
# Checkout repository
###
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
###
# 🧰 Initialize CodeQL
#
# Initializes the CodeQL tools for scanning.
###
- name: 🧰 Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: '${{github.workspace}}/.github/codeql/codeql-config.yml'
languages: 'csharp'
###
# 🧰 Setup .Net
#
# Configure the pipeline to use the correct .Net sdk versions
###
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
###
# πŸ—ƒ Restore dependencies
#
# Fill the NuGet store with necessary libraries
###
- name: πŸ—ƒ Restore dependencies
run: dotnet restore
###
# πŸ›  Build
#
# Build the library code for later use
###
- name: πŸ›  Build
run: dotnet build --no-restore --nologo --configuration "Debug"
###
# πŸ”¬ Perform CodeQL Analysis
###
- name: πŸ”¬ Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2