Skip to content

Test CodeQL

Test CodeQL #17

Workflow file for this run

name: "build"
run-name: Test CodeQL
on:
push:
branches: ["main"]
paths:
- 'src/**'
- 'tests/**'
pull_request:
branches: ["main"]
paths:
- 'src/**'
- 'tests/**'
- ".github/workflows/build-codeql.yml"
schedule:
- cron: "16 12 * * 3"
jobs:
analyze:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["csharp"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Initialize
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build
uses: github/codeql-action/autobuild@v2
- name: Analyze
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"