@@ -23,7 +23,7 @@ if [ "$RUNNER_OS" = "macOS" ]; then
23
23
24
24
sudo -u mitmproxyuser -H bash -e -c ' cd /Users/mitmproxyuser && \
25
25
python -m venv venv && \
26
- venv/bin/pip install mitmproxy==11.0.0 requests==2.32.3'
26
+ venv/bin/pip install mitmproxy==11.1.3 requests==2.32.3'
27
27
28
28
# install requests for mitm plugin
29
29
sudo cp mitm_plugin.py /Users/mitmproxyuser/mitm_plugin.py
@@ -111,13 +111,14 @@ if [ "$RUNNER_OS" = "macOS" ]; then
111
111
112
112
elif [ " $RUNNER_OS " = " Linux" ]; then
113
113
114
- # ubuntu 22 .04 and later install python 3.10 or later by default
114
+ # ubuntu 24 .04 and later install python 3.12 or later by default
115
115
python_package=" python3"
116
116
117
- # install python 3.10, otherwise ubuntu 20.04 installs 3.8 and we won't get the latest mitmproxy with important bug fixes
118
- if (( "$(lsb_release -- short -- release | cut -- delimiter= '.' -- fields= 1 )" < 22 )) ; then
117
+ # install python 3.12, otherwise ubuntu 20.04 installs 3.8 and ubuntu 22.04 installs
118
+ # 3.10 so we won't get the latest mitmproxy with important bug fixes
119
+ if (( "$(lsb_release -- short -- release | cut -- delimiter= '.' -- fields= 1 )" < 24 )) ; then
119
120
sudo add-apt-repository ppa:deadsnakes/ppa -y
120
- python_package=" python3.10 "
121
+ python_package=" python3.12 "
121
122
fi
122
123
123
124
sudo apt install -y " $python_package " -venv
@@ -128,8 +129,8 @@ elif [ "$RUNNER_OS" = "Linux" ]; then
128
129
129
130
# install mitmproxy
130
131
sudo -u mitmproxyuser -H bash -e -c ' cd ~ && \
131
- "$(command -v python3.10 || command -v python3)" -m venv venv && \
132
- venv/bin/pip install mitmproxy==11.0.0 requests==2.32.3'
132
+ "$(command -v python3.12 || command -v python3)" -m venv venv && \
133
+ venv/bin/pip install mitmproxy==11.1.3 requests==2.32.3'
133
134
134
135
sudo cp mitm_plugin.py /home/mitmproxyuser/mitm_plugin.py
135
136
sudo -u mitmproxyuser -H bash -e -c " cd /home/mitmproxyuser && \
0 commit comments