CodeQL #252
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: "CodeQL" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: "42 4 * * 6" | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: "ubuntu-latest" | |
permissions: | |
security-events: write | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: csharp | |
build-mode: manual | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: ${{ matrix.build-mode }} | |
- if: matrix.build-mode == 'manual' | |
shell: bash | |
run: | | |
echo 'Building the project using dotnet commands' | |
dotnet restore Geodatenbezug/Geodatenbezug.csproj | |
dotnet build Geodatenbezug/Geodatenbezug.csproj --no-restore | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |