From ab90834d6b3c32a1ec09956e26de8d908f180778 Mon Sep 17 00:00:00 2001 From: xavidop Date: Tue, 13 Oct 2026 11:22:17 +0200 Subject: [PATCH 1/2] chore(ci): bump codeql-action to 4.38.3 and setup-node to 7.1.0 Bump CodeQL init and analyze together so their versions match, and pin all actions to full SHAs with exact version comments for zizmor. Supersedes #390, #387, #382. --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/commitlint.yml | 2 +- .github/workflows/publish-docs.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b67936bd9..d9d088619 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ jobs: cache: maven - name: Initialize CodeQL - uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 + uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: languages: ${{ matrix.language }} @@ -42,6 +42,6 @@ jobs: run: mvn clean install -DskipTests - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 + uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index e6f3010a2..345070bcd 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -30,7 +30,7 @@ jobs: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v7 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: '20' diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index af17f3c36..3aa835c26 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -47,7 +47,7 @@ jobs: cache: "maven" - name: Set up Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: "22" cache: "npm" From 4edbc486cd1a3ec27639d2e55d70eeb877a34534 Mon Sep 17 00:00:00 2001 From: xavidop Date: Tue, 13 Oct 2026 11:24:18 +0200 Subject: [PATCH 2/2] ci: pin checkout and scope token permissions for zizmor Pin actions/checkout in commitlint.yml to a SHA and give it read-only permissions. Move the pages and id-token write permissions in publish-docs.yml down to the deploy job. --- .github/workflows/commitlint.yml | 5 ++++- .github/workflows/publish-docs.yml | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 345070bcd..84e3d7059 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -20,12 +20,15 @@ on: pull_request: types: [opened, edited, synchronize, reopened] +permissions: + contents: read + jobs: commitlint: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 3aa835c26..cea1c6e0e 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -21,11 +21,8 @@ on: branches: - main -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read - pages: write - id-token: write # Allow only one concurrent deployment concurrency: @@ -77,6 +74,10 @@ jobs: path: docs/dist deploy: + # Permissions needed to deploy to GitHub Pages + permissions: + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}