Closed jefimm closed 1 month ago
@jefimm Hello
The definition of this check - if the command contains apt
and not rm
we consider this check as failed
You can take a look here - https://github.com/bridgecrewio/checkov/blob/main/checkov/dockerfile/checks/RunUsingAPT.py
@achiar99 Can you add to docs/error message about apt-get preferable? There is no word how to "fix" error, I get the idea only at check description from github.
as you may see there is no apt command in dockerfile
Thanks for flagging, @jefimm. It should be fixed with this PR: https://github.com/bridgecrewio/checkov/pull/6611
@IUADE0H5 thank you as well. You were right that the docs were not clear. Updated here: https://github.com/hlxsites/prisma-cloud-docs/pull/783
dockerfile check fail with checkov 3.2.180 on intel mac
used to pass with previous version
command:
checkov -d . --framework dockerfile --skip-check CKV_DOCKER_2,CKV_DOCKER_4,CKV_DOCKER_7,CKV_DOCKER_3
dockerfile:
error:
it looks like it does not like https://packages.cloud.google.com/apt