This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,23 @@ COPY --link --from=cosign / /
9
9
ARG name
10
10
ARG version
11
11
RUN <<EOF
12
+ echo "### Downloading sbom-operator ${version}"
12
13
curl --silent --location --fail --remote-name "https://github.com/ckotzbauer/sbom-operator/releases/download/${version}/sbom-operator_${version}_linux_${alt_arch}.tar.gz"
14
+
15
+ echo "### Downloading signature and certificate"
13
16
curl --silent --location --fail --remote-name "https://github.com/ckotzbauer/sbom-operator/releases/download/${version}/sbom-operator_${version}_linux_${alt_arch}.tar.gz.sig"
14
17
curl --silent --location --fail --remote-name "https://github.com/ckotzbauer/sbom-operator/releases/download/${version}/sbom-operator_${version}_linux_${alt_arch}.tar.gz.pem"
15
18
19
+ SHA="$(
20
+ git ls-remote --tags https://github.com/ckotzbauer/sbom-operator "${version}" \
21
+ | cut -f1
22
+ )"
23
+ echo "### Verifying signature for SHA ${SHA}"
16
24
COSIGN_EXPERIMENTAL=1 cosign verify-blob "sbom-operator_${version}_linux_${alt_arch}.tar.gz" \
17
25
--certificate "sbom-operator_${version}_linux_${alt_arch}.tar.gz.pem" \
18
26
--signature "sbom-operator_${version}_linux_${alt_arch}.tar.gz.sig" \
19
27
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
20
- --certificate-identity https://github.com/ckotzbauer/actions-toolkit/.github/workflows/toolkit-release-goreleaser.yml@refs/tags/0.25 .0 \
28
+ --certificate-identity https://github.com/ckotzbauer/actions-toolkit/.github/workflows/toolkit-release-goreleaser.yml@refs/tags/0.31 .0 \
21
29
--certificate-github-workflow-repository ckotzbauer/sbom-operator \
22
30
--certificate-github-workflow-name create-release \
23
31
--certificate-github-workflow-ref refs/heads/main \
You can’t perform that action at this time.
0 commit comments