Skip to content

chore(deps): update github/codeql-action action to v4.31.7 (#171) #429

chore(deps): update github/codeql-action action to v4.31.7 (#171)

chore(deps): update github/codeql-action action to v4.31.7 (#171) #429

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
permissions:
contents: read
jobs:
build:
name: Build and analyze
runs-on: ubuntu-24.04
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Generate compilation database
run: cmake -B build
- name: Run sonar-scanner
uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0
with:
args: --define sonar.cfamily.compile-commands=build/compile_commands.json
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}