hadolint / hadolint-action

GitHub action for Hadolint, A Dockerfile linting tool
MIT License
194 stars 52 forks source link

Do you support config file as input? #5

Closed FinalDes closed 3 years ago

FinalDes commented 4 years ago

Hadolint --config option?

brpaz commented 4 years ago

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

FinalDes commented 4 years ago

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

josegonzalez commented 3 years ago

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