deskflow/.github/workflows/codeql-analysis.yml
Nick Bolton 47662c359e chore: Use new SonarCloud action
refactor: Rename job from 'sonarcloud-analysis' to 'analyze' in SonarCloud workflow

refactor: Reorder SonarQube scan and build wrapper installation steps in SonarCloud workflow

refactor: Update SonarQube scan step to use new action and streamline options

fix: Update SonarQube scan step to correctly pass coverage report paths and environment variables

fix: Set CPU core count to a fixed value in SonarCloud analysis workflow

refactor: Move 'Install Build Wrapper' step to the correct position in the SonarCloud analysis workflow

refactor: Remove unused Sonar Scanner environment variables from analysis workflow
2025-10-13 08:10:30 -04:00

51 lines
1.3 KiB
YAML

name: "CodeQL Analysis"
# This is best run as a standalone workflow, not as part of another workflow like CI
# because of how GitHub understands the code scanning workflows in it's UI.
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**/*.md"
- ".github/ISSUE_TEMPLATE/**"
- ".editorconfig"
- ".env-example"
- ".gitignore"
- ".gitattributes"
- "cspell.json"
push:
branches: [master]
jobs:
analyze:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
container: debian:trixie-slim
timeout-minutes: 20
steps:
- name: Install container dependencies
run: |
apt update -qqq > /dev/null
apt install -qqq git > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
like: "debian"
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3