Skip to content

up

up #364

Workflow file for this run

name: "CodeQL Advanced"
on:
push:
branches: [ "dev" ]
#pull_request:
# branches: [ "dev" ]
# schedule:
# - cron: "44 4 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: csharp
build-mode: manual
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: |
paths-ignore:
- '**/*.Tests'
- name: Setup .NET
if: ${{matrix.language == 'csharp'}}
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Restore dependencies
if: ${{matrix.language == 'csharp'}}
run: dotnet restore src/DKNet.FW.sln
- name: Build
if: ${{matrix.language == 'csharp'}}
continue-on-error: true
run: dotnet build src/DKNet.FW.sln --no-restore --configuration Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"