Skip to content

Commit 72a1b6a

Browse files
[anaconda] Rework patch for GHSA-v845-jxx5-vc9f (#821)
* Rework patch for GHSA-v845-jxx5-vc9f * Update tests
1 parent 4823e89 commit 72a1b6a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ RUN conda install \
1717
# https://github.com/advisories/GHSA-45c4-8wx5-qw6w
1818
aiohttp=3.8.5 \
1919
# https://github.com/advisories/GHSA-j7hp-h8jx-5ppr
20-
pillow=10.0.1
20+
pillow=10.0.1 \
21+
# https://github.com/advisories/GHSA-v845-jxx5-vc9f
22+
urllib3==1.26.18
2123

2224
RUN python3 -m pip install --upgrade \
2325
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
@@ -37,9 +39,7 @@ RUN python3 -m pip install --upgrade \
3739
# https://github.com/advisories/GHSA-282v-666c-3fvg
3840
transformers==4.30.0 \
3941
# https://github.com/advisories/GHSA-r726-vmfq-j9j3
40-
jupyter_server==2.7.2 \
41-
# https://github.com/advisories/GHSA-v845-jxx5-vc9f
42-
urllib3==1.26.17
42+
jupyter_server==2.7.2
4343

4444
# Reset and copy updated files with updated privs to keep image size down
4545
FROM mcr.microsoft.com/devcontainers/base:1-bullseye

src/anaconda/test-project/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ checkPythonPackageVersion "transformers" "4.30.0"
4545
checkPythonPackageVersion "mpmath" "1.3.0"
4646
checkPythonPackageVersion "aiohttp" "3.8.5"
4747
checkPythonPackageVersion "jupyter_server" "2.7.2"
48-
checkPythonPackageVersion "urllib3" "1.26.17"
4948

5049
# The `tornado` package doesn't have the `__version__` attribute so we can use the `version` attribute.
5150
tornado_version=$(python -c "import tornado; print(tornado.version)")
@@ -58,6 +57,7 @@ checkCondaPackageVersion "pygments" "2.15.1"
5857
checkCondaPackageVersion "mpmath" "1.3.0"
5958
checkCondaPackageVersion "aiohttp" "3.8.5"
6059
checkCondaPackageVersion "pillow" "10.0.1"
60+
checkCondaPackageVersion "urllib3" "1.26.17"
6161

6262
check "conda-update-conda" bash -c "conda update -y conda"
6363
check "conda-install-tensorflow" bash -c "conda create --name test-env -c conda-forge --yes tensorflow"

0 commit comments

Comments
 (0)