Skip to content

Commit 54c79ae

Browse files
Update generator_container_slsa3.yml
Signed-off-by: Danil Grigorev <[email protected]>
1 parent 3bcecb4 commit 54c79ae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/generator_container_slsa3.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ on:
8787
description: "If set, provenance is pushed to this registry instead of image registry."
8888
required: false
8989
type: string
90+
recursive:
91+
description: "If set, for the specified multi-arch image, additionally sign each discrete image."
92+
required: false
93+
type: boolean
94+
default: false
9095
outputs:
9196
# Note: we use this output because there is no buildt-in `outcome` and `result` is always `success`
9297
# if `continue-on-error` is set to `true`.
@@ -268,6 +273,7 @@ jobs:
268273
GITHUB_CONTEXT: "${{ toJSON(github) }}"
269274
VARS_CONTEXT: "${{ toJSON(vars) }}"
270275
UNTRUSTED_PROVENANCE_REPOSITORY: "${{ inputs.provenance-repository }}"
276+
RECURSIVE: "${{ inputs.recursive }}"
271277
run: |
272278
set -euo pipefail
273279
@@ -283,6 +289,7 @@ jobs:
283289
cosign attest --predicate="$predicate_name" \
284290
--type slsaprovenance \
285291
--yes \
292+
--recursive="${RECURSIVE}" \
286293
"${UNTRUSTED_IMAGE}@${UNTRUSTED_DIGEST}"
287294
288295
- name: Final outcome

0 commit comments

Comments
 (0)