From 3af27b3715922afe133a41b9ff5205c132ae9325 Mon Sep 17 00:00:00 2001 From: xavidop Date: Thu, 12 Nov 2026 12:18:11 +0100 Subject: [PATCH 1/3] ci: group dependabot updates and cancel superseded pr runs Dependabot opened one pull request per dependency, and each one ran every workflow. Group the Maven and GitHub Actions updates so each ecosystem opens a single weekly pull request, and cancel a pull request run when a newer push replaces it. --- .github/dependabot.yml | 10 ++++++++-- .github/workflows/codeql.yml | 7 +++++++ .github/workflows/commitlint.yml | 7 +++++++ .github/workflows/java.yml | 8 ++++++++ .github/workflows/license-check.yml | 7 +++++++ 5 files changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 32c1c4779..19ce61f30 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -18,6 +18,12 @@ updates: commit-message: prefix: "chore(deps)" include: "scope" + # One pull request for the whole weekly update instead of one per + # dependency, each of which ran every workflow on its own. + groups: + maven-dependencies: + patterns: + - "*" # Enable version updates for GitHub Actions - package-ecosystem: "github-actions" @@ -35,6 +41,6 @@ updates: commit-message: prefix: "chore(ci)" groups: - codeql-action: + github-actions: patterns: - - "github/codeql-action*" + - "*" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 970cc1bd0..6f08c1500 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,6 +8,13 @@ on: schedule: - cron: '30 1 * * 0' # Weekly on Sundays at 1:30 AM +# A new push to a pull request (or a Dependabot rebase) cancels the run it +# replaces instead of stacking another one behind it. Every other trigger is +# keyed by commit, so each commit on main still gets its own run. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: analyze: name: Analyze diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 84e3d7059..75e7a3159 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -23,6 +23,13 @@ on: permissions: contents: read +# A new push to a pull request (or a Dependabot rebase) cancels the run it +# replaces instead of stacking another one behind it. Every other trigger is +# keyed by commit, so each commit on main still gets its own run. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: commitlint: runs-on: ubuntu-latest diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ab3f419b9..ccab817cf 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -21,6 +21,14 @@ on: push: branches: - main + +# A new push to a pull request (or a Dependabot rebase) cancels the run it +# replaces instead of stacking another one behind it. Every other trigger is +# keyed by commit, so each commit on main still gets its own run. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index c0dbd3c73..990375a13 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -4,6 +4,13 @@ on: pull_request: branches: [ main ] +# A new push to a pull request (or a Dependabot rebase) cancels the run it +# replaces instead of stacking another one behind it. Every other trigger is +# keyed by commit, so each commit on main still gets its own run. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: check-license: runs-on: ubuntu-latest From a4d094ab9a84dd04af65ea5b9216c65dd449340a Mon Sep 17 00:00:00 2001 From: xavidop Date: Thu, 12 Nov 2026 12:22:22 +0100 Subject: [PATCH 2/3] ci: leave the license check workflow unchanged Touching the file made the actions scan flag its existing unpinned action references, and the job is too small for run cancellation to matter. --- .github/workflows/license-check.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 990375a13..c0dbd3c73 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -4,13 +4,6 @@ on: pull_request: branches: [ main ] -# A new push to a pull request (or a Dependabot rebase) cancels the run it -# replaces instead of stacking another one behind it. Every other trigger is -# keyed by commit, so each commit on main still gets its own run. -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - jobs: check-license: runs-on: ubuntu-latest From 65e7d0c957994e7a2ae77ca26ae381e125e7aefa Mon Sep 17 00:00:00 2001 From: xavidop Date: Thu, 12 Nov 2026 12:30:45 +0100 Subject: [PATCH 3/3] ci: give the java workflow read-only permissions The actions scan warns when a workflow falls back to the default token permissions. Both jobs only check out and build, so read access to contents is enough. --- .github/workflows/java.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index ccab817cf..3d0e8d573 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -22,6 +22,9 @@ on: branches: - main +permissions: + contents: read + # A new push to a pull request (or a Dependabot rebase) cancels the run it # replaces instead of stacking another one behind it. Every other trigger is # keyed by commit, so each commit on main still gets its own run.