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

Feature request: message on no issues found #1006

Open
2 of 3 tasks
RoFz opened this issue Mar 8, 2024 · 0 comments
Open
2 of 3 tasks

Feature request: message on no issues found #1006

RoFz opened this issue Mar 8, 2024 · 0 comments

Comments

@RoFz
Copy link

RoFz commented Mar 8, 2024

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Hadolint to inform/acknowledge when no issues are found.

$ hadolint components/runner/Dockerfile 
No issues found in components/runner/Dockerfile
$

Actual behavior

Hadolint does not produce any output when no issues are found.

$ hadolint components/runner/Dockerfile 

$

Steps to reproduce the behavior

Execute hadolint against any Dockerfile.

$ hadolint --version
Haskell Dockerfile Linter 2.12.0

$ hadolint components/runner/Dockerfile 

$

This feature would be really useful since we're also using hadolint's GitHub Action along with thollander/actions-comment-pull-request to supply scan results to our pull requests. Unfortunately, hadolint does not produce any output when no issues are found. It would be great to have something like what Aquasec's trivy does:

components/hello-world/output/hello-world.tar (alpine 3.19.1)
=============================================================
Total: 0 (HIGH: 0, CRITICAL: 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant