hadolint / hadolint-action

GitHub action for Hadolint, A Dockerfile linting tool
MIT License
192 stars 50 forks source link

feat: expose results of hadolint to env var #55

Closed harmw closed 2 years ago

harmw commented 2 years ago

This pushes all results from hadolint into both a var named results and an environment variable for easy pickup in other steps in a workflow.

There's a single integration-test included that makes use of this feature, pushing the result back into a pending PR.

Additionally, I found the tee trick to be broken as hadolint mistakenly wanted to parse/use the | tee outputfile.txt as input. Hence writing to file is now done using a plain echo.

lorenzo commented 2 years ago

thanks!

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 2.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

DracoBlue commented 1 year ago

This PR broke the output for cases when it shall not be exposed.

Thus see https://github.com/hadolint/hadolint-action/pull/71 to fix this.