Bumps the github-actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.4.0` | `7.0.1` | | [actions/cache/restore](https://github.com/actions/cache) | `5.0.5` | `6.1.0` | | [actions/cache/save](https://github.com/actions/cache) | `5.0.5` | `6.1.0` | | [actions/setup-java](https://github.com/actions/setup-java) | `5.7.0` | `6.0.0` | | [github/codeql-action](https://github.com/github/codeql-action) | `3` | `4` | | [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `2.4.0` | `4.2.2` | | [reactivecircus/android-emulator-runner](https://github.com/reactivecircus/android-emulator-runner) | `2.35.0` | `2.38.0` | Updates `actions/checkout` from 4.4.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.4.0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `actions/cache/restore` from 5.0.5 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/27d5ce7f107fe9357f9df03efb73ab90386fccae...55cc8345863c7cc4c66a329aec7e433d2d1c52a9) Updates `actions/cache/save` from 5.0.5 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/27d5ce7f107fe9357f9df03efb73ab90386fccae...55cc8345863c7cc4c66a329aec7e433d2d1c52a9) Updates `actions/setup-java` from 5.7.0 to 6.0.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/b6effb05e454b25005698d916606bdc6ffcbf961...dd06d9cba3e5552c54d9f8ea23572deb30010f7c) Updates `github/codeql-action` from 3 to 4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v3...v4) Updates `actions/attest-build-provenance` from 2.4.0 to 4.2.2 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/e8998f949152b193b063cb0ec769d69d929409be...4d101475d8b20a2381f78447822ac1eab6504dd8) Updates `reactivecircus/android-emulator-runner` from 2.35.0 to 2.38.0 - [Release notes](https://github.com/reactivecircus/android-emulator-runner/releases) - [Changelog](https://github.com/ReactiveCircus/android-emulator-runner/blob/main/CHANGELOG.md) - [Commits](https://github.com/reactivecircus/android-emulator-runner/compare/b530d96654c385303d652368551fb075bc2f0b6b...a421e43855164a8197daf9d8d40fe71c6996bb0d) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache/restore dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache/save dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-java dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/attest-build-provenance dependency-version: 4.2.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: reactivecircus/android-emulator-runner dependency-version: 2.38.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
85 lines
2.9 KiB
YAML
85 lines
2.9 KiB
YAML
# CodeQL security analysis (C++ engine + Python tools).
|
|
#
|
|
# Runs on pushes to dev, weekly, and on demand -- not on every PR -- because
|
|
# the C++ analysis requires a full instrumented build (~40 min). The SARIF
|
|
# results appear under Security -> Code scanning and are also posted as PR
|
|
# comments when a PR branch is analyzed.
|
|
|
|
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
schedule:
|
|
- cron: "0 16 * * 0"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: codeql-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ubuntu-24.04
|
|
# The instrumented C++ build takes about 34 minutes and database analysis
|
|
# can take another 30+ minutes on GitHub-hosted runners.
|
|
timeout-minutes: 90
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ["cpp", "python"]
|
|
steps:
|
|
- name: Checkout
|
|
timeout-minutes: 10
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install system packages (C++ build)
|
|
if: matrix.language == 'cpp'
|
|
timeout-minutes: 10
|
|
run: |
|
|
sudo sed -i -E 's#https?://[^/]*archive\.ubuntu\.com/ubuntu#http://archive.ubuntu.com/ubuntu#g' \
|
|
/etc/apt/apt-mirrors.txt /etc/apt/sources.list /etc/apt/sources.list.d/*.sources 2>/dev/null || true
|
|
sudo apt-get update -o Acquire::Retries=2 \
|
|
-o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential cmake ninja-build \
|
|
libx11-dev libxxf86vm-dev libxi-dev libxcursor-dev \
|
|
libxrandr-dev libxinerama-dev libxext-dev libxss-dev \
|
|
libgl1-mesa-dev \
|
|
libbz2-dev libpng-dev \
|
|
libwayland-dev libxkbcommon-dev libasound2-dev \
|
|
mesa-vulkan-drivers libvulkan-dev vulkan-tools glslang-tools
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: security-and-quality
|
|
|
|
- name: Build (C++)
|
|
if: matrix.language == 'cpp'
|
|
timeout-minutes: 40
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
# Third-party deps ship prebuilt SDK headers/libs; the engine itself
|
|
# must be built under CodeQL tracing. BUILD_TESTING=OFF keeps the
|
|
# scan focused on engine sources and avoids the test-only TUs.
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_PLATFORM=linux \
|
|
-DBUILD_TESTING=OFF \
|
|
-B build/codeql -S .
|
|
cmake --build build/codeql --target deps -j "$(nproc)"
|
|
cmake --build build/codeql -j "$(nproc)"
|
|
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|