Skip to content

Commit fe89e4b

Browse files
committed
fail attestation
1 parent 6785154 commit fe89e4b

2 files changed

Lines changed: 3 additions & 21 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"args": {
77
"DOCKER_GID": "${env:DOCKER_GID:}",
88
"IMAGE_NAME": "node_24_python_3_14",
9-
"IMAGE_VERSION": "ci-228a6e2",
9+
"IMAGE_VERSION": "pr-23-d823049",
1010
"USER_UID": "${localEnv:USER_ID:}",
1111
"USER_GID": "${localEnv:GROUP_ID:}"
1212
},

.github/workflows/verify_attestation.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,15 @@ name: Verify image digest and attestation
2121
signer_workflow:
2222
required: false
2323
type: string
24-
default: ""
24+
default: ".github/workflows/build_multi_arch_image.yml@refs/heads/main"
2525
signer_repo:
2626
required: false
2727
type: string
28-
default: ""
29-
source_ref:
30-
required: false
31-
type: string
32-
default: ""
28+
default: "NHSDigital/eps-devcontainers"
3329
predicate_type:
3430
required: false
3531
type: string
3632
default: https://slsa.dev/provenance/v1
37-
bundle_from_oci:
38-
required: false
39-
type: boolean
40-
default: false
4133
outputs:
4234
pinned_image:
4335
description: Fully-qualified digest-pinned image reference
@@ -108,9 +100,7 @@ jobs:
108100
OWNER: ${{ inputs.owner }}
109101
SIGNER_WORKFLOW: ${{ inputs.signer_workflow }}
110102
SIGNER_REPO: ${{ inputs.signer_repo }}
111-
SOURCE_REF: ${{ inputs.source_ref }}
112103
PREDICATE_TYPE: ${{ inputs.predicate_type }}
113-
BUNDLE_FROM_OCI: ${{ inputs.bundle_from_oci }}
114104
PINNED_IMAGE: ${{ steps.resolve.outputs.pinned_image }}
115105
run: |
116106
set -euo pipefail
@@ -125,13 +115,5 @@ jobs:
125115
args+=("--signer-repo" "$SIGNER_REPO")
126116
fi
127117
128-
if [[ -n "$SOURCE_REF" ]]; then
129-
args+=("--source-ref" "$SOURCE_REF")
130-
fi
131-
132-
if [[ "$BUNDLE_FROM_OCI" == "true" ]]; then
133-
args+=("--bundle-from-oci")
134-
fi
135-
136118
GH_FORCE_TTY=120 gh attestation verify "${args[@]}" 2>&1
137119
echo "Verified attestation for ${PINNED_IMAGE}"

0 commit comments

Comments
 (0)