From 3c494fdd7a6530e06198530a0868978772cca975 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 22 Dec 2020 14:16:57 +0000 Subject: [PATCH] Prevent accidental analysis of the `get-pip.py` script. --- python-setup/install_tools.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-setup/install_tools.sh b/python-setup/install_tools.sh index 8d97d22b3..905ab1ad0 100755 --- a/python-setup/install_tools.sh +++ b/python-setup/install_tools.sh @@ -31,8 +31,7 @@ python3 -m pip install --user pipenv if command -v python2 &> /dev/null; then # Setup Python 2 dependency installation tools. # The Ubuntu 20.04 GHA environment does not come with a Python 2 pip - curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py - python2 get-pip.py + curl --location --fail https://bootstrap.pypa.io/get-pip.py | python2 python2 -m pip install --user --upgrade pip setuptools wheel