Skip to content

Commit ddeca8d

Browse files
Anaconda: Update 'cryptography' python package due GHSA-39hc-v87j-747x (#239)
* Anaconda: Patch * Patch * cyprography patch * Update link
1 parent d0db896 commit ddeca8d

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
@@ -60,6 +60,10 @@ RUN python3 -m pip install --upgrade joblib
6060
# 'cookiecutter' is installed by the base image (continuumio/anaconda3) which does not have the patch.
6161
RUN python3 -m pip install --upgrade cookiecutter
6262

63+
# Temporary: Upgrade 'cryptography' due to https://github.com/advisories/GHSA-39hc-v87j-747x
64+
# 'cryptography' is installed by the base image (continuumio/anaconda3) which does not have the patch.
65+
RUN python3 -m pip install --upgrade cryptography
66+
6367
# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
6468
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
6569
# 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
@@ -25,7 +25,8 @@
2525
},
2626
"pip": [
2727
"joblib",
28-
"cookiecutter"
28+
"cookiecutter",
29+
"cryptography"
2930
],
3031
"other": {
3132
"conda": {

src/anaconda/test-project/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ cookiecutter_version=$(python -c "import cookiecutter; print(cookiecutter.__vers
2929
check "cookiecutter" bash -c "echo ${cookiecutter}"
3030
check-version-ge "cookiecutter-requirement" "${cookiecutter_version}" "2.1.1"
3131

32+
cryptography_version=$(python -c "import cryptography; print(cryptography.__version__)")
33+
check "cryptography" bash -c "echo ${cryptography}"
34+
check-version-ge "cryptography-requirement" "${cryptography_version}" "38.0.3"
35+
3236
# Report result
3337
reportResults

0 commit comments

Comments
 (0)