From 109fa27624a0220fe8f7866a7d6aff8833b70949 Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 31 Oct 2026 16:17:22 +0200 Subject: [PATCH] ci: cancel superseded pull request runs --- .github/workflows/codeql.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e2166b0..fa564b8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,6 +13,11 @@ permissions: contents: read security-events: write +# A new push to a pull request cancels the older run for it; pushes to branches are never cancelled. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event_name == 'push' && github.ref || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: analyze: name: Analyze Go with CodeQL