hadolint / hadolint-action

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

Mention requirement to use checkout #25

Closed kalikiana closed 3 years ago

kalikiana commented 3 years ago

I think the usage example should include the checkout action:

uses: actions/checkout@v2

Because otherwise you get this error trying to use hadolint:

hadolint: ./container/webui/Dockerfile: openBinaryFile: does not exist (No such file or directory)
brpaz commented 3 years ago

Well, I can add that, I thought it was pretty obvious, since if you don´t checkout your code, how hadolint will have anything to analyze?

lorenzo commented 3 years ago

I think it would be idea to have a full copy-pasteable example @brpaz

kalikiana commented 3 years ago

Yes. If you provide an example like that I kind of expect it to work as-is.

lorenzo commented 3 years ago

@kalikiana would you like to contribute the example to the readme?