Fix: Add concurrency and permissions to verify 74/5174/1
authorEric Ball <eball@linuxfoundation.org>
Tue, 12 Dec 2023 02:01:03 +0000 (18:01 -0800)
committerEric Ball <eball@linuxfoundation.org>
Tue, 12 Dec 2023 02:01:03 +0000 (18:01 -0800)
Though concurrency is also defined in the composed workflow, this
action needs it as well. The permissions are also important to
allow to nested actions to execute properly.

Change-Id: I340202d53dac355a2f357535af058edd8223e175
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml

index cd06381..978e92e 100644 (file)
@@ -48,6 +48,13 @@ on:
         default: "{}"
         type: string
 
+concurrency:
+  # yamllint disable-line rule:line-length
+  group: ci-management-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
+  cancel-in-progress: true
+
+permissions: read-all
+
 jobs:
   call-composed-ci-man-verify:
     # yamllint disable-line rule:line-length