Skip to content

Commit

Permalink
Update generator_container_slsa3.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
  • Loading branch information
Danil-Grigorev committed Sep 10, 2024
1 parent 3bcecb4 commit 54c79ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/generator_container_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ on:
description: "If set, provenance is pushed to this registry instead of image registry."
required: false
type: string
recursive:
description: "If set, for the specified multi-arch image, additionally sign each discrete image."
required: false
type: boolean
default: false
outputs:
# Note: we use this output because there is no buildt-in `outcome` and `result` is always `success`
# if `continue-on-error` is set to `true`.
Expand Down Expand Up @@ -268,6 +273,7 @@ jobs:
GITHUB_CONTEXT: "${{ toJSON(github) }}"
VARS_CONTEXT: "${{ toJSON(vars) }}"
UNTRUSTED_PROVENANCE_REPOSITORY: "${{ inputs.provenance-repository }}"
RECURSIVE: "${{ inputs.recursive }}"
run: |
set -euo pipefail
Expand All @@ -283,6 +289,7 @@ jobs:
cosign attest --predicate="$predicate_name" \
--type slsaprovenance \
--yes \
--recursive="${RECURSIVE}" \
"${UNTRUSTED_IMAGE}@${UNTRUSTED_DIGEST}"
- name: Final outcome
Expand Down

0 comments on commit 54c79ae

Please sign in to comment.