]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: set `concurrency:` where missing
authorViktor Szakats <commit@vsz.me>
Fri, 24 Oct 2025 11:02:55 +0000 (13:02 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 24 Oct 2025 11:38:11 +0000 (13:38 +0200)
To silence zizmor 1.16.0 warnings.

Also:
- http3-linux: replace hard-coded workflow name with variable.
  Follow-up to a8174176b5425c5692b55b78e40aef3a2331155f #13841
- codeql: set `cancel-in-progress: true`.
  zizmor apparently does not allow `false` in pedantic mode anymore:
  https://github.com/zizmorcore/zizmor/pull/1227
- codeql: sync concurrency setting with the rest of the jobs.
  (I'm not sure this is correct, or why it was previously special-cased.)

Expressions used (before and after this patch):
- `group: ${{ github.workflow }}-${{ github.event.sha }}-${{ github.event.target_url }}`
  for GHA/appveyor-status.
- `group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}`
  for all the rest.

Ref: https://github.com/curl/curl/actions/runs/18776245057/job/53571438139?pr=19209

Closes #19215

.github/workflows/checksrc.yml
.github/workflows/codeql.yml
.github/workflows/configure-vs-cmake.yml
.github/workflows/fuzz.yml
.github/workflows/http3-linux.yml
.github/workflows/label.yml
.github/workflows/linux-old.yml

index a0337904f2c70896e3510e99b5b45ec295397124..bd930f8ff1ff88341a20855bbdeccd089df47462 100644 (file)
@@ -27,6 +27,10 @@ name: 'Source'
       - 'plan9/**'
       - 'tests/data/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
 permissions: {}
 
 jobs:
index 58eaa35be5ba42cd3a368c2c2a324050a4a146d0..5cbde8de054c1197b0cfa50b64758ef6298da624 100644 (file)
@@ -32,7 +32,8 @@ name: 'CodeQL'
     - cron: '0 0 * * 4'
 
 concurrency:
-  group: ${{ github.workflow }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
 
 permissions: {}
 
index 5c35051f6a34b7a559a5f967c6c9625ff6b8462d..ade83e0c6028579a89f8b9f686327a1d684dcf55 100644 (file)
@@ -30,6 +30,10 @@ name: 'configure-vs-cmake'
       - '.github/scripts/cmp-config.pl'
       - '.github/workflows/configure-vs-cmake.yml'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
 permissions: {}
 
 jobs:
index 1c466160fc778a9556681edbfb0364253c543db4..98cdd8a97d0e921939c92f86cc8064d45fe502c8 100644 (file)
@@ -35,6 +35,10 @@ name: 'Fuzzer'
       - 'projects/**'
       - 'tests/data/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
 permissions: {}
 
 jobs:
index 668de7ede413c299db3f3340f54c13e16bdf998e..b29a3076f93bf2850f0af0efc335270a0f68c942 100644 (file)
@@ -30,8 +30,7 @@ name: 'Linux HTTP/3'
       - 'projects/**'
 
 concurrency:
-  # Hardcoded workflow filename as workflow name above is just Linux again
-  group: http3-${{ github.event.pull_request.number || github.sha }}
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
   cancel-in-progress: true
 
 permissions: {}
index a5f42f9d409b99a9a3799c106c8a8f5d43cb3c5d..0c169e607573e6b7b259426c14bc82d29494b6ed 100644 (file)
@@ -13,6 +13,10 @@ name: 'Labeler'
 
 'on': [pull_request_target]  # zizmor: ignore[dangerous-triggers]
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
 permissions: {}
 
 jobs:
index e145633708de9b1c42426da03fd3e106f4ea2d8f..198f90c538ef7d233ccf3b7efe559ebca4d863b1 100644 (file)
@@ -43,6 +43,10 @@ name: 'Old Linux'
       - 'plan9/**'
       - 'projects/**'
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
+  cancel-in-progress: true
+
 permissions: {}
 
 env: