File tree 2 files changed +18
-0
lines changed
src/usr/local/containerbase/tools/v2
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 3
3
# shellcheck source=/dev/null
4
4
. " $( get_containerbase_path) /utils/python.sh"
5
5
6
+ function install_tool () {
7
+ local python_version
8
+ local python_minor_version
9
+ python_version=$( get_tool_version python)
10
+ python_minor_version=$( get_python_minor_version " ${python_version} " )
11
+
12
+ if [[ " ${python_minor_version} " == " 3.7" ]]; then
13
+ # checkov <2.5 needs a workaround openai https://github.com/openai/openai-python/issues/1263
14
+ install_python_tool openai==1.14.1
15
+ else
16
+ install_python_tool
17
+ fi
18
+ }
19
+
6
20
function link_tool () {
7
21
post_install
8
22
[[ -n $SKIP_VERSION ]] || checkov --version
Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ RUN set -ex \
192
192
# renovate: datasource=pypi
193
193
RUN install-tool checkov 3.2.20
194
194
195
+ # test old checkov with old python
196
+ RUN install-tool python 3.7.17
197
+ RUN install-tool checkov 2.3.298
198
+
195
199
# --------------------------------------
196
200
# test pipenv-b: pipenv (multiple python)
197
201
# --------------------------------------
You can’t perform that action at this time.
0 commit comments