diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 98090e34d..ae771aea4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,6 +28,10 @@ on: schedule: - cron: '16 4 * * 1' +concurrency: + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml index 834ade883..377e806ad 100644 --- a/.github/workflows/cpp-linter.yml +++ b/.github/workflows/cpp-linter.yml @@ -27,6 +27,10 @@ on: branches: - main +concurrency: + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + jobs: cpp-linter: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 361314812..ea037f1a3 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -21,6 +21,10 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] +concurrency: + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index d8a06a108..413eee866 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -25,6 +25,10 @@ on: - '**' - '!dependabot/**' +concurrency: + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + permissions: contents: write diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 5265d6f04..f6665ffae 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -26,6 +26,10 @@ on: types: [opened, synchronize, reopened, ready_for_review] branches: ["**"] +concurrency: + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true + permissions: {} jobs: