Skip to content

Commit fc2497b

Browse files
committed
use published from main
1 parent 7924143 commit fc2497b

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/quality-checks-devcontainer.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
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

.github/workflows/verify_attestation.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)