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

Do you support config file as input? #5

Closed
FinalDes opened this issue May 17, 2020 · 3 comments · Fixed by #32
Closed

Do you support config file as input? #5

FinalDes opened this issue May 17, 2020 · 3 comments · Fixed by #32
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@FinalDes
Copy link

Hadolint --config option?

@brpaz
Copy link
Collaborator

brpaz commented May 28, 2020

Not natively, but you could try using the "dockerfile" input argument which is passed straight to the hadolint command:

     uses: brpaz/hadolint-action@master
      with:
         dockerfile:  "--config xxx"

I might improve this to allow specifying a config option but for now since I always use the default .hadolint,yaml it´s not a need for me. PRs are always welcome

@brpaz brpaz added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels May 28, 2020
@FinalDes
Copy link
Author

FinalDes commented Jun 2, 2020

plz mention the default hadolint config file is .hadolint,yaml in README.md file

@josegonzalez
Copy link

Would be great to be able to specify the .hadolint.yml path. I put all of mine in .github/linters at the moment.

m-ildefons added a commit to m-ildefons/hadolint-action that referenced this issue May 8, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants