-
Notifications
You must be signed in to change notification settings - Fork 54
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
Error: No hadolint failure but Actions job fails #60
Comments
I have this problem too |
Same problem an currently no solution 😢 |
The problem seems to be, that some errors/warnings/infos are not displayed in the log.
But in the CI, no message is displayed but the step fails. If I add the exclusion for |
I hate to leave me too messages - but me too :) Also I believe that if you write the report to file it also is empty |
Same here. |
I've been experiencing this same issue for a couple of months. Is this project still maintained? Last activity seems to be in May. |
I found that if you re-run the job with debug logging enabled you will see some output. |
For me it worked to set According to the documentation, the default is Ex: - name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
failure-threshold: error
|
Not sure but this seems to be related to #55 |
This issue has been fixed by the 3.0.0 release for us (we also pinned at 2.0.0 to avoid having this problem). |
I still have it on 3.0.0 and even on master : https://github.com/dunglas/symfony-docker/actions/runs/3765268860/jobs/6400565741 |
To fix hadolint#60 in hadolint-action>v2.0.0
You need to set output-file to /dev/stdout. I added a PR for this at #71 |
Setting steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Hadolint on Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
# it will fail with no error if I omit this...
failure-threshold: error |
@humphd please use 3.1.0 and the error messages should be visible |
I created a PR at #75 to ensure people are not copying v3.0.0 from the README.md |
@DracoBlue that's excellent, thank you for the info and fixing the README. Appreciated. |
No hadolint failure but Actions job fails when executing below actions.
Execution log
Actions yaml (part of hadolint job)
Workaround: Actions success when setting
failure-threshold: "warning"
option.But even if hadolint fails with info severity, Actions job will succeed😢.
The text was updated successfully, but these errors were encountered: