From: Jason Ish Date: Mon, 12 Feb 2024 21:13:30 +0000 (-0600) Subject: github-ci: cancel previous job for all workflows X-Git-Tag: suricata-8.0.0-beta1~1770 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c981346247cd560ccbab3a5708f05b97db62f8c;p=thirdparty%2Fsuricata.git github-ci: cancel previous job for all workflows Previously only enabled in build.yml, apply cancen-in-progress to all workflow files. --- diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml index b7efe11864..77bb2614de 100644 --- a/.github/workflows/authors.yml +++ b/.github/workflows/authors.yml @@ -3,6 +3,10 @@ name: New Authors Check on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: check-id: name: New Author Check diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index c9816e1e54..5ebcb6d1cf 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -5,6 +5,10 @@ on: paths-ignore: - "doc/**" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: read-all jobs: Fuzzing: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c59b712128..31be87c39d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,6 +13,10 @@ on: schedule: - cron: '18 21 * * 1' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml index 1ca2a48c58..7d1d87350b 100644 --- a/.github/workflows/commits.yml +++ b/.github/workflows/commits.yml @@ -5,6 +5,10 @@ on: permissions: read-all +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: DEBIAN_FRONTEND: "noninteractive" diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index ca3ddc87c8..5adf1dd86f 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -12,6 +12,10 @@ on: paths-ignore: - "doc/**" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: read-all env: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0b38f36ae4..eebf43c13e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,6 +11,10 @@ on: permissions: contents: read # to fetch code (actions/checkout) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: check-rust: name: Check Rust diff --git a/.github/workflows/scan-build.yml b/.github/workflows/scan-build.yml index 4809706582..f0df97e7c8 100644 --- a/.github/workflows/scan-build.yml +++ b/.github/workflows/scan-build.yml @@ -8,6 +8,10 @@ on: paths-ignore: - "doc/**" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: scan-build: name: Scan-build diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml index 66647b239e..f63517641b 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards-analysis.yml @@ -7,6 +7,10 @@ on: push: branches: [ master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Declare default permissions as read only. permissions: read-all