Skip to content

eBPF-based security platform

ci: Add concurrency cancellation to the remaining workflows

Tobias Klauser7f9f6d1f8514
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 552dfbe3..9ed9f25f 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -9,6 +9,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
analyze:
name: Analyze (${{ matrix.name }})
diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml
index ac6c9258..3ef05de2 100644
--- a/.github/workflows/dco.yml
+++ b/.github/workflows/dco.yml
@@ -9,6 +9,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
dco:
name: Signed-off-by
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 432eba66..e1c4bedb 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -11,6 +11,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
docs:
runs-on: ubuntu-latest
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cf71081f..ea89d5ff 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -9,6 +9,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
shellcheck:
name: ShellCheck
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index 6cc0bfa7..aa9e8701 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -11,6 +11,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
deb:
runs-on: ubuntu-latest
diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml
index ee026303..ec110aef 100644
--- a/.github/workflows/sanitizers.yml
+++ b/.github/workflows/sanitizers.yml
@@ -14,6 +14,11 @@ on:
permissions:
contents: read
+# A newer run for the same branch or pull request supersedes this one.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
tests:
name: ASan+UBSan (${{ matrix.compiler }})