Skip to content

Commit d0db896

Browse files
Anaconda: Update 'cookiecutter' python package due to CVE-2022-24065 (#238)
* Anaconda: Patch * Patch * update utils
1 parent ed10399 commit d0db896

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5656
# 'joblib' is installed by the base image (continuumio/anaconda3) which does not have the patch.
5757
RUN python3 -m pip install --upgrade joblib
5858

59+
# Temporary: Upgrade 'cookiecutter' due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24065
60+
# 'cookiecutter' is installed by the base image (continuumio/anaconda3) which does not have the patch.
61+
RUN python3 -m pip install --upgrade cookiecutter
62+
5963
# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
6064
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
6165
# COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/

src/anaconda/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"Oh My Zsh!": "/home/vscode/.oh-my-zsh"
2525
},
2626
"pip": [
27-
"joblib"
27+
"joblib",
28+
"cookiecutter"
2829
],
2930
"other": {
3031
"conda": {

src/anaconda/test-project/test.sh

100755100644
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ joblib_version=$(python -c "import joblib; print(joblib.__version__)")
2525
check "joblib" bash -c "echo ${joblib_version}"
2626
check-version-ge "joblib-requirement" "${joblib_version}" "1.2.0"
2727

28+
cookiecutter_version=$(python -c "import cookiecutter; print(cookiecutter.__version__)")
29+
check "cookiecutter" bash -c "echo ${cookiecutter}"
30+
check-version-ge "cookiecutter-requirement" "${cookiecutter_version}" "2.1.1"
31+
2832
# Report result
2933
reportResults

0 commit comments

Comments
 (0)