Skip to content

Commit a4a72ce

Browse files
committed
Install cosign 2.4.1 or later
1 parent 882a4b8 commit a4a72ce

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

python/3.11/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818
RUN set -ex \
1919
&& export PYTHON_VERSION=${PYTHON_VERSION} \
2020
&& apk add --no-cache --virtual .fetch-deps \
21-
cosign \
2221
openssl \
2322
tar \
2423
xz \
24+
&& apk add --no-cache --virtual .cosign cosign \
25+
--repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526
\
2627
&& curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728
&& curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829
&& cosign verify-blob \
30+
--new-bundle-format \
2931
--certificate-identity "${CERT_IDENTITY}" \
3032
--certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133
--bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365
zlib-dev \
6466
bluez-dev \
6567
# add build deps before removing fetch deps in case there's overlap
66-
&& apk del .fetch-deps \
68+
&& apk del .fetch-deps .cosign \
6769
\
6870
&& for i in /usr/src/*.patch; do \
6971
patch -d /usr/src/python -p 1 < "${i}"; done \

python/3.12/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818
RUN set -ex \
1919
&& export PYTHON_VERSION=${PYTHON_VERSION} \
2020
&& apk add --no-cache --virtual .fetch-deps \
21-
cosign \
2221
openssl \
2322
tar \
2423
xz \
24+
&& apk add --no-cache --virtual .cosign cosign \
25+
--repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526
\
2627
&& curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728
&& curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829
&& cosign verify-blob \
30+
--new-bundle-format \
2931
--certificate-identity "${CERT_IDENTITY}" \
3032
--certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133
--bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365
zlib-dev \
6466
bluez-dev \
6567
# add build deps before removing fetch deps in case there's overlap
66-
&& apk del .fetch-deps \
68+
&& apk del .fetch-deps .cosign \
6769
\
6870
&& for i in /usr/src/*.patch; do \
6971
patch -d /usr/src/python -p 1 < "${i}"; done \

python/3.13/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ COPY *.patch /usr/src/
1818
RUN set -ex \
1919
&& export PYTHON_VERSION=${PYTHON_VERSION} \
2020
&& apk add --no-cache --virtual .fetch-deps \
21-
cosign \
2221
openssl \
2322
tar \
2423
xz \
24+
&& apk add --no-cache --virtual .cosign cosign \
25+
--repository="https://dl-cdn.alpinelinux.org/alpine/v3.21/community" \
2526
\
2627
&& curl -L -o python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
2728
&& curl -L -o python.tar.xz.sigstore "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.sigstore" \
2829
&& cosign verify-blob \
30+
--new-bundle-format \
2931
--certificate-identity "${CERT_IDENTITY}" \
3032
--certificate-oidc-issuer "${CERT_OIDC_ISSUER}" \
3133
--bundle python.tar.xz.sigstore \
@@ -63,7 +65,7 @@ RUN set -ex \
6365
zlib-dev \
6466
bluez-dev \
6567
# add build deps before removing fetch deps in case there's overlap
66-
&& apk del .fetch-deps \
68+
&& apk del .fetch-deps .cosign \
6769
\
6870
&& for i in /usr/src/*.patch; do \
6971
patch -d /usr/src/python -p 1 < "${i}"; done \

0 commit comments

Comments
 (0)