We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Because we want to analyse some multistage docker builds or just use variables in the process, we'd like kics to analyse correctly our variables.
(Which results are expected from KICS?)
Kics should send an error on the tag latest of the image
(Formatted logs and samples helps us to better understand the issue)
With the right variables, kics could miss some warnings on tags of the base image.
(Command line arguments and flags used)
# syntax=docker/dockerfile:1 ARG BASE_IMAGE=alpine ARG BASE_IMAGE_TAG=latest FROM ${BASE_IMAGE}:${BASE_IMAGE_TAG} as main
docker run -t -v "$PWD/kics":/path checkmarx/kics scan -p "/path" -o "/path/"
Image Version Using 'latest', Severity: MEDIUM
While you get the warning with the following docker file :
# syntax=docker/dockerfile:1 ARG BASE_IMAGE=alpine FROM ${BASE_IMAGE}:latest as main
The text was updated successfully, but these errors were encountered:
Hello, @LvffY!
Thank you so much for noticing and reporting! We are fixing it in PR #5621 😊
Sorry, something went wrong.
@LvffY, do you mind if we use your sample for unit test purposes?
Good idea.... If so, please approve we can use them under Apache 2.0 license.
@kaplanlior @rafaela-soares No problem for me, you can use it for test purposes under Apache license :)
Thank you so much, @LvffY!
rafaela-soares
Successfully merging a pull request may close this issue.
Context
Because we want to analyse some multistage docker builds or just use variables in the process, we'd like kics to analyse correctly our variables.
Expected Behavior
(Which results are expected from KICS?)
Kics should send an error on the tag latest of the image
Actual Behavior
(Formatted logs and samples helps us to better understand the issue)
With the right variables, kics could miss some warnings on tags of the base image.
Steps to Reproduce the Problem
(Command line arguments and flags used)
Image Version Using 'latest', Severity: MEDIUM
While you get the warning with the following docker file :
The text was updated successfully, but these errors were encountered: