diff --git a/.github/workflows/cflite.yml b/.github/workflows/cflite.yml index 5d3aa1e6f1..dc75831586 100644 --- a/.github/workflows/cflite.yml +++ b/.github/workflows/cflite.yml @@ -1,10 +1,18 @@ name: ClusterFuzzLite PR fuzzing + on: workflow_dispatch: pull_request: paths: - '**' + +# cancel any previous runs on the same PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + permissions: read-all + jobs: PR: runs-on: ubuntu-latest diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 60ec8231fa..54ff2c22fa 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -6,6 +6,11 @@ on: schedule: - cron: '14 23 * * *' # every day @ 23:14 +# cancel any previous runs on the same PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: crypto_build: name: Crypto library diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 4c4509c33f..12ce4dd884 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -11,6 +11,11 @@ on: schedule: - cron: '15 23 * * *' # every day @ 23:15 +# cancel any previous runs on the same PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + permissions: id-token: write # for fetching the OIDC token contents: read # for actions/checkout diff --git a/.github/workflows/legacy.yml b/.github/workflows/legacy.yml index 4a2a1c3f18..31e9a33506 100644 --- a/.github/workflows/legacy.yml +++ b/.github/workflows/legacy.yml @@ -6,6 +6,11 @@ on: schedule: - cron: '35 22 * * *' # every day @ 22:35 +# cancel any previous runs on the same PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + permissions: id-token: write # for fetching the OIDC token contents: read # for actions/checkout diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 76df94bef7..4cee594600 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -6,6 +6,11 @@ on: schedule: - cron: '13 23 * * *' # every day @ 23:13 +# cancel any previous runs on the same PR +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: CARGOLOCK_COMMENT: Looks like you changed `Cargo.lock`. Please make sure to review the dependencies and update [internal version list](https://www.notion.so/satoshilabs/Rust-dependencies-a9cc6e8dab934def8eb27896c001e6e2).