Skip to content

Commit 094554c

Browse files
authored
Merge pull request #349 from github/prevent-accidental-analysis-of-get-pip
Prevent accidental analysis of the `get-pip.py` script.
2 parents dc999c5 + 3c494fd commit 094554c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python-setup/install_tools.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ python3 -m pip install --user pipenv
3131
if command -v python2 &> /dev/null; then
3232
# Setup Python 2 dependency installation tools.
3333
# The Ubuntu 20.04 GHA environment does not come with a Python 2 pip
34-
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
35-
python2 get-pip.py
34+
curl --location --fail https://bootstrap.pypa.io/get-pip.py | python2
3635

3736
python2 -m pip install --user --upgrade pip setuptools wheel
3837

0 commit comments

Comments
 (0)