diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 9482786cf57..aa55e0b21e8 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -9,6 +9,10 @@ on: env: fossa-key: 9e722f2c8904586d61f97f0bf05a99e4 # This is a public key only for pushing, it's safe here +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/pr-e2e-checker.yml b/.github/workflows/pr-e2e-checker.yml index 290c57cf54d..7457c230cf7 100644 --- a/.github/workflows/pr-e2e-checker.yml +++ b/.github/workflows/pr-e2e-checker.yml @@ -9,6 +9,10 @@ env: SKIP_E2E_TAG: skip-e2e E2E_CHECK_NAME: e2e tests +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: e2e-checker: name: label checker diff --git a/.github/workflows/pr-e2e-creator.yml b/.github/workflows/pr-e2e-creator.yml index 913a1a10b7a..55c0119b7c0 100644 --- a/.github/workflows/pr-e2e-creator.yml +++ b/.github/workflows/pr-e2e-creator.yml @@ -9,6 +9,10 @@ env: SKIP_E2E_TAG: skip-e2e E2E_CHECK_NAME: e2e tests +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: check-creator: name: check-creator diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 389d703eb3c..0e903157c6a 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,6 +1,11 @@ name: CI on: - pull_request + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: validate: name: validate - ${{ matrix.name }} diff --git a/.github/workflows/static-analysis-codeql.yml b/.github/workflows/static-analysis-codeql.yml index 1cfb29a4f79..1489aa1119c 100644 --- a/.github/workflows/static-analysis-codeql.yml +++ b/.github/workflows/static-analysis-codeql.yml @@ -5,6 +5,10 @@ on: branches: [ "main" ] pull_request: {} +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: codeQl: name: Analyze CodeQL Go diff --git a/.github/workflows/static-analysis-semgrep.yml b/.github/workflows/static-analysis-semgrep.yml index 0e3693cc501..39ea2a288a9 100644 --- a/.github/workflows/static-analysis-semgrep.yml +++ b/.github/workflows/static-analysis-semgrep.yml @@ -5,6 +5,10 @@ on: branches: [ "main" ] pull_request_target: {} +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: semgrep: name: Analyze Semgrep