Skip to content

code-ql

code-ql #22

Workflow file for this run

name: code-ql
on:
workflow_dispatch:
push:
branches:
- '*'
paths:
- "src/**"
- "test/**"
- "samples/**"
pull_request:
branches:
- '*'
paths:
- "src/**"
- "test/**"
- "samples/**"
schedule:
- cron: '00 21 * * 5'
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: csharp
build-mode: manual
steps:
- uses: actions/checkout@v5
- uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- uses: actions/setup-dotnet@v5
if: matrix.language == 'csharp'
with:
dotnet-version: 10.x
- run: dotnet build
if: matrix.language == 'csharp'
- uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"