chore(deps): update github/codeql-action action to v3.27.0 #262
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Code Analysis | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: none | |
jobs: | |
scan-build: | |
name: Run Clang Analyzer | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: read | |
security-events: write | |
env: | |
CXX: clang++-18 | |
CCC_CXX: clang++-18 | |
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 | |
SCANBUILD_DIR: /tmp/scanbuild | |
steps: | |
- name: Check out code | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Run analysis | |
run: | | |
scan-build-17 cmake -B build | |
scan-build-17 --force-analyze-debug-code -sarif --status-bugs -no-failure-reports -o "${SCANBUILD_DIR}" --exclude build cmake --build build | |
continue-on-error: true | |
id: scanbuild | |
- name: Merge SARIF reports | |
run: sarif-multitool merge "${{ env.SCANBUILD_DIR }}/" --recurse --output-directory=/tmp --output-file=scan-build.sarif | |
- name: Upload scan results | |
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0 | |
with: | |
sarif_file: /tmp/scan-build.sarif | |
category: scanbuild | |
continue-on-error: true | |
- name: Set exit code | |
run: exit 1 | |
if: steps.scanbuild.outcome == 'failure' |