Skip to content

Commit de9fdd0

Browse files
committed
To run smoke tests
1 parent 4828efe commit de9fdd0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/src/utils/image-content-extractor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function getUserName(imageId) {
284284
}
285285

286286
async function getPipVersionLookup(imageTagOrContainerName, imageId) {
287-
const packageVersionListOutput = await getCommandOutputFromContainer(imageTagOrContainerName, 'pip list --disable-pip-version-check --no-python-version-warning --format json', false, getUserName(imageId));
287+
const packageVersionListOutput = await getCommandOutputFromContainer(imageTagOrContainerName, 'pip list --disable-pip-version-check --format json', false, getUserName(imageId));
288288

289289
const packageVersionList = JSON.parse(packageVersionListOutput);
290290

src/anaconda/.devcontainer/apply_security_patches.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# vulnerabilities:
44
# werkzeug - [GHSA-f9vj-2wh5-fj8j]
55

6-
vulnerable_packages=( "mistune=3.0.1" "transformers=4.36.0" "cryptography=43.0.1" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
6+
vulnerable_packages=( "mistune=3.0.1" "transformers=4.36.0" "cryptography=43.0.3" "jupyter-lsp=2.2.2" "scrapy=2.11.2" \
77
"zipp=3.19.1" "tornado=6.4.2")
88

99
# Define the number of rows (based on the length of vulnerable_packages)
@@ -45,12 +45,12 @@ for ((i=0; i<rows; i++)); do
4545
CONDA_VERSION="0"
4646
fi
4747
GREATER_VERSION_B=$((echo ${REQUIRED_VERSION}; echo ${CONDA_VERSION}) | sort -V | tail -1)
48-
if [[ $CONDA_VERSION == $GREATER_VERSION_B ]]; then
48+
if [[ $CONDA_VERSION == $GREATER_VERSION_B && ${packages_array[$i,0]} != "cryptography" ]]; then
4949
echo -e "Found Version v${CONDA_VERSION} in the Conda channel which is greater than or equal to the required version: v${REQUIRED_VERSION}. \n";
5050
echo "Installing ${packages_array[$i,0]} from source from conda channel for v${REQUIRED_VERSION}..."
51-
conda install "${packages_array[$i,0]}==${CONDA_VERSION}"
52-
elif [[ $REQUIRED_VERSION == $GREATER_VERSION_B ]]; then
53-
echo -e "Required version: v${REQUIRED_VERSION} is greater than the version found in the Conda channel v${CONDA_VERSION}. \n";
51+
conda install "${packages_array[$i,0]}==${CONDA_VERSION}"
52+
elif [[ $REQUIRED_VERSION == $GREATER_VERSION_B || ${packages_array[$i,0]} == "cryptography" ]]; then
53+
echo -e "Required version: v${REQUIRED_VERSION} is greater than the version found in the Conda channel v${CONDA_VERSION} or its cryptography package. \n";
5454
echo "Installing ${packages_array[$i,0]} from source from pip package manager for v${REQUIRED_VERSION}..."
5555
python3 -m pip install --upgrade --no-cache-dir "${packages_array[$i,0]}==${REQUIRED_VERSION}"
5656
fi

0 commit comments

Comments
 (0)