-
Notifications
You must be signed in to change notification settings - Fork 53
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
How do I ignore certain problems? #8
Comments
Right now it´s not possible to pass ignore rules as arguments. You can create an |
+1 This is my use case here. I use two validation stages. One for the main Dockerfile and one for a "dev" release containing additional developing and debug tools which should not be in the final production image. -
name: Validate root Dockerfile
uses: brpaz/[email protected]
with:
dockerfile: Dockerfile
-
name: Validate dev Dockerfile
uses: brpaz/[email protected]
with:
dockerfile: with-xdebug/Dockerfile And here in the dev image FROM ghcr.io/made/alpine-nginx-php8:latest So linter runs over this line and of course fails because I get the latest version instead of explicitly requiring. I would love to see the configuration here for example like this. -
name: Validate root Dockerfile
uses: brpaz/[email protected]
with:
dockerfile: Dockerfile
-
name: Validate dev Dockerfile
uses: brpaz/[email protected]
with:
dockerfile: with-xdebug/Dockerfile
ignore:
- DL3000
- SC1010 |
- bump Hadolint version to 2.4.0 - change to debian based image - add common config options - expand integration tests for new options fixes: hadolint#5 fixes: hadolint#8 fixes: hadolint#17 fixes: hadolint#18 fixes: hadolint#31
e.g. i would love to do something along these lines
Who can I achieve that?
The text was updated successfully, but these errors were encountered: