From e8fe2d3c17582bff1a43da68e732672d29cb313e Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 4 Jun 2026 09:12:12 +0800 Subject: [PATCH] Update GitHub Actions CodeQL Action v2 was discontinued last year: https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated Other deprecated Node.js 20 actions may not work after June 16th, 2026: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners `security-events` permission is required by the CodeQL action Signed-off-by: xxyzz --- .github/workflows/check.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8a747d52..f021a16e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install build-dependencies run: sudo ./ci/builddeps.sh - name: Enable user namespaces @@ -71,7 +71,7 @@ jobs: test ! -e DESTDIR-as-subproject/usr/local/libexec/bwrap tests/use-as-subproject/assert-correct-rpath.py DESTDIR-as-subproject/usr/local/libexec/not-flatpak-bwrap - name: Upload test logs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 if: failure() || cancelled() with: name: test logs @@ -80,6 +80,8 @@ jobs: clang: name: Build with clang and analyze runs-on: ubuntu-latest + permissions: + security-events: write strategy: fail-fast: false matrix: @@ -87,11 +89,11 @@ jobs: - cpp steps: - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} - name: Check out - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install build-dependencies run: sudo ./ci/builddeps.sh --clang - run: meson build -Dselinux=enabled @@ -102,4 +104,4 @@ jobs: -Werror=unused-variable - run: meson compile -C build - name: CodeQL analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v4