Skip to content

feat: DualSense + Switch Pro types + thin-catalog default-to-first (#31) #89

feat: DualSense + Switch Pro types + thin-catalog default-to-first (#31)

feat: DualSense + Switch Pro types + thin-catalog default-to-first (#31) #89

Workflow file for this run

name: CodeQL
# Source-level static analysis for dish-linux (C++ / Qt6 / SDL2).
#
# Pin map (verify with `gh api repos/<owner>/<repo>/git/ref/tags/<tag>`):
# actions/checkout @ v6.0.2 → de0fac2e4500dabe0009e67214ff5f5447ce83dd
# github/codeql-action/* @ v4.35.4 → 68bde559dea0fdcac2102bfdf6230c5f70eb485e
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 6 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language: [cpp]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential cmake ninja-build pkg-config \
qt6-base-dev qt6-base-dev-tools qt6-svg-dev \
libsodium-dev libsdl2-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Build
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DDISH_BUILD_TESTS=OFF
cmake --build build --parallel --target Dish
- name: Perform CodeQL analysis
# SARIF upload requires GitHub Advanced Security on private repos.
# `continue-on-error` keeps the analysis running and surfacing
# findings in the logs while GHAS enablement is still pending —
# see HANDOFF.md item 5.
continue-on-error: true
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
with:
category: "/language:${{ matrix.language }}"
upload: failure-only