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 @@ -212,6 +212,10 @@ RUN set -ex \
212
212
# renovate: datasource=pypi
213
213
RUN install-tool checkov 3.2.39
214
214
215
+ # test old checkov with old python
216
+ RUN install-tool python 3.7.17
217
+ RUN install-tool checkov 2.3.298
218
+
215
219
# --------------------------------------
216
220
# test pipenv-b: pipenv (multiple python)
217
221
# --------------------------------------
You can’t perform that action at this time.
0 commit comments