Skip to content

CodeQL

CodeQL #89

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
paths-ignore:
- "**/*.md"
- docs/**
- mkdocs.yml
- site/**
- ".gitignore"
- LICENSE
pull_request:
branches: [main]
paths-ignore:
- "**/*.md"
- docs/**
- mkdocs.yml
- site/**
- ".gitignore"
- LICENSE
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language: [csharp]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Restore solution
run: dotnet restore CleanArchitecture.Extensions.sln
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
- name: Autobuild
uses: github/codeql-action/autobuild@v3
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
SkipNSwag: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"