File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,14 +18,10 @@ name: Verify image digest and attestation
1818 required : false
1919 type : string
2020 default : NHSDigital
21- signer_workflow :
21+ source_ref :
2222 required : false
2323 type : string
24- default : " .github/workflows/build_multi_arch_image.yml@refs/heads/main"
25- signer_repo :
26- required : false
27- type : string
28- default : " NHSDigital/eps-devcontainers"
24+ default : " "
2925 predicate_type :
3026 required : false
3127 type : string
@@ -98,22 +94,18 @@ jobs:
9894 env :
9995 GH_TOKEN : ${{ github.token }}
10096 OWNER : ${{ inputs.owner }}
101- SIGNER_WORKFLOW : ${{ inputs.signer_workflow }}
102- SIGNER_REPO : ${{ inputs.signer_repo }}
97+ SOURCE_REF : ${{ inputs.source_ref }}
10398 PREDICATE_TYPE : ${{ inputs.predicate_type }}
10499 PINNED_IMAGE : ${{ steps.resolve.outputs.pinned_image }}
105100 run : |
106101 set -euo pipefail
107102
108103 args=("oci://${PINNED_IMAGE}" "--owner" "$OWNER" "--predicate-type" "$PREDICATE_TYPE")
109104
110- if [[ -n "$SIGNER_WORKFLOW " ]]; then
111- args+=("--signer-workflow " "$SIGNER_WORKFLOW ")
105+ if [[ -n "$SOURCE_REF " ]]; then
106+ args+=("--source-ref " "$SOURCE_REF ")
112107 fi
113108
114- if [[ -n "$SIGNER_REPO" ]]; then
115- args+=("--signer-repo" "$SIGNER_REPO")
116- fi
117109
118110 GH_FORCE_TTY=120 gh attestation verify "${args[@]}" 2>&1
119111 echo "Verified attestation for ${PINNED_IMAGE}"
You can’t perform that action at this time.
0 commit comments