Skip to content

Commit

Permalink
Universal Anaconda: Update "wheel" due to CVE-2022-40898 (devcontaine…
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Feb 27, 2023
1 parent b211374 commit a8ae894
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/anaconda/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ RUN python3 -m pip install \
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34141
numpy \
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23491
certifi
certifi \
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40898
wheel

# Copy environment.yml (if found) to a temp location so we can update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
Expand Down
3 changes: 2 additions & 1 deletion src/anaconda/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"cryptography",
"mistune",
"numpy",
"certifi"
"certifi",
"wheel"
],
"other": {
"git": {},
Expand Down
3 changes: 3 additions & 0 deletions src/anaconda/test-project/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ check-version-ge "mistune-requirement" "${mistune_version}" "2.0.3"
numpy_version=$(python -c "import numpy; print(numpy.__version__)")
check-version-ge "numpy-requirement" "${numpy_version}" "1.22"

wheel_version=$(python -c "import wheel; print(wheel.__version__)")
check-version-ge "wheel-requirement" "${wheel_version}" "0.38.1"

# Report result
reportResults
3 changes: 2 additions & 1 deletion src/universal/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
"requests",
"plotly",
"jupyterlab-git",
"certifi"
"certifi",
"wheel"
],
"other": {
"git": {},
Expand Down
3 changes: 3 additions & 0 deletions src/universal/test-project/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ check "java-version-on-path-is-12.0.2" java --version | grep 12.0.2
MAVEN_PATH=$(cd /usr/local/sdkman/candidates/maven/3*/lib/ && pwd)
check "commons-io-lib" bash -c "ls ${MAVEN_PATH} | grep commons-io-2.11.jar"

wheel_version=$(python -c "import wheel; print(wheel.__version__)")
check-version-ge "wheel-requirement" "${wheel_version}" "0.38.1"

ls -la /home/codespace

# Report result
Expand Down

0 comments on commit a8ae894

Please sign in to comment.