Skip to content

Potential fix for code scanning alert no. 82: Generic catch clause #69

Potential fix for code scanning alert no. 82: Generic catch clause

Potential fix for code scanning alert no. 82: Generic catch clause #69

Workflow file for this run

name: "CodeQL Advanced"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "22 3 * * 0"
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze (${{ matrix.language }})
strategy:
fail-fast: false
matrix:
include:
- language: csharp
runner: windows-latest
build-mode: manual
- language: actions
runner: ubuntu-latest
build-mode: none
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Initialize CodeQL
uses: github/codeql-action/init@865f5f5c36632f18690a3d569fa0a764f2da0c3e
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended,security-and-quality
- name: Setup .NET 10 for C# build
if: matrix.language == 'csharp'
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
with:
dotnet-version: "10.0.x"
- name: Restore (C#)
if: matrix.language == 'csharp'
run: dotnet restore
- name: Build (C#)
if: matrix.language == 'csharp'
run: dotnet build --no-restore -c Debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@865f5f5c36632f18690a3d569fa0a764f2da0c3e