Skip to content

Commit eef267f

Browse files
[v1.7.x] images/ansible-operator/base.Dockerfile: pin pip3~=21.1 (#4878)
Signed-off-by: Eric Stroczynski <[email protected]> Co-authored-by: Eric Stroczynski <[email protected]>
1 parent 1073944 commit eef267f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog/fragments/pip3-21.1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
entries:
2+
- description: >
3+
Pinned pip3 to 21.1 in the ansible-operator image to fix https://github.com/pypa/pip/pull/9827
4+
kind: bugfix

images/ansible-operator/base.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ ENV PIP_NO_CACHE_DIR=1 \
2121
PIPENV_CLEAR=1
2222
# Ensure fresh metadata rather than cached metadata, install system and pip python deps,
2323
# and remove those not needed at runtime.
24+
# pip3~=21.1 fixes a vulnerability described in https://github.com/pypa/pip/pull/9827.
2425
RUN yum clean all && rm -rf /var/cache/yum/* \
2526
&& yum update -y \
2627
&& yum install -y libffi-devel openssl-devel python38-devel gcc python38-pip python38-setuptools \
28+
&& pip3 install --upgrade pip~=21.1.0 \
2729
&& pip3 install pipenv==2020.11.15 \
2830
&& pipenv install --deploy \
2931
&& pipenv check \

0 commit comments

Comments
 (0)