File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,17 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5252 && usermod -aG conda ${USERNAME} \
5353 && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/add-notice.sh
5454
55- # Temporary: Upgrade 'joblib' due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
56- # 'joblib' is installed by the base image (continuumio/anaconda3) which does not have the patch.
57- RUN python3 -m pip install --upgrade joblib
58-
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-
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
55+ # Temporary: Upgrade python packages due to mentioned CVEs
56+ # They are installed by the base image (continuumio/anaconda3) which does not have the patch.
57+ RUN python3 -m pip install \
58+ # https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21797
59+ --upgrade joblib \
60+ # https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24065
61+ cookiecutter \
62+ # https://github.com/advisories/GHSA-39hc-v87j-747x
63+ cryptography \
64+ # https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34749
65+ mistune
6666
6767# Copy environment.yml (if found) to a temp locaition so we update the environment. Also
6868# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
Original file line number Diff line number Diff line change 2626 "pip" : [
2727 " joblib" ,
2828 " cookiecutter" ,
29- " cryptography"
29+ " cryptography" ,
30+ " mistune"
3031 ],
3132 "other" : {
3233 "conda" : {
Original file line number Diff line number Diff line change @@ -18,20 +18,19 @@ check "pycodestyle" pycodestyle --version
1818check " nvm" bash -c " . /usr/local/share/nvm/nvm.sh && nvm --version"
1919
2020git_version=$( git --version)
21- check " git" bash -c " echo ${git_version} "
2221check-version-ge " git-requirement" " ${git_version} " " git version 2.38.1"
2322
2423joblib_version=$( python -c " import joblib; print(joblib.__version__)" )
25- check " joblib" bash -c " echo ${joblib_version} "
2624check-version-ge " joblib-requirement" " ${joblib_version} " " 1.2.0"
2725
2826cookiecutter_version=$( python -c " import cookiecutter; print(cookiecutter.__version__)" )
29- check " cookiecutter" bash -c " echo ${cookiecutter} "
3027check-version-ge " cookiecutter-requirement" " ${cookiecutter_version} " " 2.1.1"
3128
3229cryptography_version=$( python -c " import cryptography; print(cryptography.__version__)" )
33- check " cryptography" bash -c " echo ${cryptography} "
3430check-version-ge " cryptography-requirement" " ${cryptography_version} " " 38.0.3"
3531
32+ mistune_version=$( python -c " import mistune; print(mistune.__version__)" )
33+ check-version-ge " mistune-requirement" " ${mistune_version} " " 2.0.3"
34+
3635# Report result
3736reportResults
You can’t perform that action at this time.
0 commit comments