From 0cbd04e396e730443f117bcc2dbb8db5c1935fe3 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 22 Mar 2026 15:11:53 +0200 Subject: [PATCH] ci: migrate codeql to composable workflow --- .github/workflows/codeql.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 06bc211..fb21459 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,7 +1,6 @@ --- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: "CodeQL" - on: push: branches: ["main"] @@ -11,16 +10,15 @@ on: - cron: "30 1 * * 0" merge_group: -permissions: {} +permissions: + actions: read + contents: read jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: - actions: read - contents: read - packages: read security-events: write strategy: fail-fast: false @@ -28,7 +26,6 @@ jobs: language: ["actions"] steps: - name: CodeQL Analysis - uses: ivuorinen/actions/codeql-analysis@dc85cef1c285edd3d2edcb4a7c82bdd08ccc7c56 # v2026.03.20 + uses: ivuorinen/actions/codeql-analysis@main with: language: ${{ matrix.language }} - queries: security-and-quality