Commit be9572a
chore: add concurrent workflow rules (#4855)
This pull request updates several GitHub Actions workflow files to add
concurrency controls. The main goal is to prevent multiple runs of the
same workflow from executing simultaneously on the same branch or ref,
which helps reduce unnecessary resource usage and ensures that only the
latest workflow run is active. Most workflows now use a concurrency
group based on the workflow name and branch/ref, with
`cancel-in-progress` set to `true` so that in-progress runs are canceled
when a new run is triggered. Two workflows (`release.yml` and
`stale.yml`) use a different concurrency configuration.
Concurrency configuration added to workflows:
**General concurrency improvements**
* Added `concurrency` blocks to `.github/workflows/codeql.yml`,
`.github/workflows/dependency-review.yml`,
`.github/workflows/lambda.yml`, `.github/workflows/ossf-scorecard.yml`,
`.github/workflows/ovs.yml`, `.github/workflows/packer-build.yml`,
`.github/workflows/semantic-check.yml`,
`.github/workflows/terraform.yml`, `.github/workflows/update-docs.yml`,
and `.github/workflows/zizmor.yml` to group runs by workflow name and
branch/ref and cancel in-progress runs (`cancel-in-progress: true`).
[[1]](diffhunk://#diff-12783128521e452af0cfac94b99b8d250413c516ec71fe6d97dbea666ff7ba27R13-R16)
[[2]](diffhunk://#diff-7cdd3ccec44c8ba176bdc3b9ef54c3f56aa210a1a4e2bb5f79d87b1e50314a18R12-R15)
[[3]](diffhunk://#diff-b0732b88b9e5a3df48561602571a10179d2b28cbb21ba8032025932bc9606426R11-R14)
[[4]](diffhunk://#diff-0f32dffa00fbb4b53f979f3524fd4f69451050cda001ae563ed49e27e702da7bR10-R13)
[[5]](diffhunk://#diff-0efa76244190040e37ac26bd58a2e1c1155c0de92da9ddf72276d5354c5c0bf8R8-R11)
[[6]](diffhunk://#diff-7d0fae1f42bb015ceff53b783c22a632e3c0aa2a62f4bf6cf3b71cf5c8d8cda1R11-R15)
[[7]](diffhunk://#diff-9d577d2550fe414a048906bc0af8ff9188d21f432e41be311e49b3a910fe9ac4R8-R12)
[[8]](diffhunk://#diff-10eac00f40a120814e0c56ca5bf5a61c8b335acbdeb977b72207606aa3daea4dR9-R12)
[[9]](diffhunk://#diff-6cb924cb587613a1d83384b44ca0c806ccf512202b3f29f529fc6825cef21de2R9-R12)
[[10]](diffhunk://#diff-8e6408444d2bf2bed6f02c5dc62a7f1f6ab7337eae098d332986e6a81411aeb7R13-R16)
**Special concurrency configuration**
* For `.github/workflows/release.yml`, added a concurrency group by
workflow name and branch/ref, but set `cancel-in-progress: false` to
allow multiple runs to proceed.
* For `.github/workflows/stale.yml`, added a concurrency group by
workflow name only, with `cancel-in-progress: false`.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent f5775a9 commit be9572a
File tree
13 files changed
+54
-0
lines changed- .github
- workflows
13 files changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments