reviewdog / action-hadolint

Run hadolint with reviewdog 🐶
MIT License
48 stars 16 forks source link

Add include option #110

Open USA-RedDragon opened 1 month ago

USA-RedDragon commented 1 month ago

This is useful if running Hadolint across different directories, such as in a matrix action on a monorepo, as an example of why this was needed: https://github.com/USA-RedDragon/dockers/blob/604e7e8cfbc10f5503401b9d3e4f823074b5908a/.github/workflows/linting.yml#L41-L64

Prior behavior caused Hadolint to run against all files in the repo with no way to filter it down to exclusively check in the appropriate matrix path