Skip to content

Potential fix for code scanning alert no. 84: Poor error handling: empty catch block #87

Potential fix for code scanning alert no. 84: Poor error handling: empty catch block

Potential fix for code scanning alert no. 84: Poor error handling: empty catch block #87

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@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
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@v5
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@v4