Skip to content
New issue

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

CKV_DOCKER_7 only reports on first occurence of issue #6890

Open
Kemosabert opened this issue Dec 3, 2024 · 0 comments
Open

CKV_DOCKER_7 only reports on first occurence of issue #6890

Kemosabert opened this issue Dec 3, 2024 · 0 comments
Labels
checks Check additions or changes

Comments

@Kemosabert
Copy link

Describe the issue
The rule CKV_DOCKER_7 only reports the first occurence of the rule in a file and does not flag on other stages also not pinning the image to a specific tag.

Examples

FROM test.dkr.ecr.eu-west-2.amazonaws.com/my-registry/baseimage as baseImage

# do bunch of things here

FROM test.dkr.ecr.eu-west-2.amazonaws.com/my-registry/migrations-runner:latest as setup
# do bunch of more things here

ENTRYPOINT ["/entrypoint.sh"]

I would expect it to flag both FROM statements as problematic, but it only flags the first one. Once that is fixed, the 2nd one will also be flagged.

Version (please complete the following information):

  • Checkov Version [3.2.327]

Additional context
Add any other context about the problem here.

@Kemosabert Kemosabert added the checks Check additions or changes label Dec 3, 2024
@Kemosabert Kemosabert changed the title CKV_DOCKER_7 only reports on first occurencce of issue CKV_DOCKER_7 only reports on first occurence of issue Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checks Check additions or changes
Projects
None yet
Development

No branches or pull requests

1 participant