We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please refer to PR #59 for detailed solutions.
hadolint-action
README.md
action.yml
inputs.config.default
hadolint/hadolint:latest
- uses: hadolint/[email protected] with: config: PATH
Substitute PATH with the followings:
PATH
hadolint.yaml ./hadolint.yaml .hadolint.yaml /home/runner/work/sandbox/sandbox/hadolint.yaml
hadolint
$PWD/.hadolint.yaml $XDG_CONFIG_HOME/hadolint.yaml $HOME/.config/hadolint.yaml $HOME/.hadolint/hadolint.yaml or $HOME/hadolint/config.yaml $HOME/.hadolint.yaml
NOTE hadolint-action utilizes Docker container for execution
Docker
PWD
HOME
inputs.config
HADOLINT_CONFIG
Dockerfile
hadolint.sh
-c ${HADOLINT_CONFIG}
docker run .. --workdir /github/workspace .. -v "/home/runner/work/sandbox/sandbox":"/github/workspace" ..
PWD=/
HOME=/root
pwd
-v
/github/workspace/hadolint.yaml
/github/workspace/
MAJOR_VERSION
Thank you!
The text was updated successfully, but these errors were encountered:
Would you like to submit a change with those fixes?
Sorry, something went wrong.
@lorenzo I could definitely do that! How would I proceed to do so? EDIT: I have opened PR #59 for the solutions :D
No branches or pull requests
Please refer to PR #59 for detailed solutions.
ISSUES
hadolint-action
cannot receive configuration file properlyREADME.md
andaction.yml
inputs.config.default
is empty inaction.yml
, whileREADME.md
states otherwiseREADME.md
would still encounter the above issuehadolint/hadolint:latest
container also suffers from configuration file issueTEST CASES
Substitute
PATH
with the followings:INVESTIGATION
hadolint
looks for configuration files viaNOTE
hadolint-action
utilizesDocker
container for executionhadolint
usesPWD
andHOME
environment variablesaction.yml
mapsinputs.config
toHADOLINT_CONFIG
Dockerfile
points tohadolint.sh
for entrypointhadolint.sh
appends-c ${HADOLINT_CONFIG}
tohadolint
commandhadolint-action
usesDocker
withPWD=/
andHOME=/root
inside the containerCONCLUSION
pwd
inside the container isn't matching withPWD
norHOME
,hadolint
cannot find configuration file in usual placespwd
and-v
for the container, we can editPATH
to be/github/workspace/hadolint.yaml
forhadolint-action
to useSUGGESTION
README.md
accordingly (CONCLUSION.2)or
PWD
/HOME
inDockerfile
to accommodate the differencesor
/github/workspace/
to the path of configuration fileor preferably all of the above! :D
MAJOR_VERSION
tag for the release (Release management: improve semantic versioning #47)Thank you!
The text was updated successfully, but these errors were encountered: