Scheduled GitHub CodeQL #82
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
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 |