File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 uses : ./.github/workflows/verify_attestation.yml
3131 with :
3232 runtime_docker_image : " ${{ inputs.runtime_docker_image }}"
33- source_ref : " refs/heads/main"
3433 quality_checks :
3534 runs-on : ubuntu-22.04
3635 needs : verify_attestation
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ name: Verify image digest and attestation
1818 required : false
1919 type : string
2020 default : NHSDigital
21- source_ref :
21+ use_published_from_main_image :
2222 required : false
23- type : string
24- default : " "
23+ type : boolean
24+ default : true
2525 predicate_type :
2626 required : false
2727 type : string
@@ -94,16 +94,16 @@ jobs:
9494 env :
9595 GH_TOKEN : ${{ github.token }}
9696 OWNER : ${{ inputs.owner }}
97- SOURCE_REF : ${{ inputs.source_ref }}
97+ USE_PUBLISHED_FROM_MAIN_IMAGE : ${{ inputs.use_published_from_main_image }}
9898 PREDICATE_TYPE : ${{ inputs.predicate_type }}
9999 PINNED_IMAGE : ${{ steps.resolve.outputs.pinned_image }}
100100 run : |
101101 set -euo pipefail
102102
103103 args=("oci://${PINNED_IMAGE}" "--owner" "$OWNER" "--predicate-type" "$PREDICATE_TYPE")
104104
105- if [[ -n "$SOURCE_REF " ]]; then
106- args+=("--source-ref" "$SOURCE_REF ")
105+ if [[ "$USE_PUBLISHED_FROM_MAIN_IMAGE" == "true " ]]; then
106+ args+=("--source-ref" "refs/heads/main ")
107107 fi
108108
109109
You can’t perform that action at this time.
0 commit comments