Commit 39e5727 1 parent 0e6b33f commit 39e5727 Copy full SHA for 39e5727
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 27
27
# Download hadolint if necessary
28
28
if [ " ${DOWNLOAD} " == " true" ]; then
29
29
echo " ::debug::Downloading Hadolint ${VERSION} "
30
- # https://github.com/actions/runner-images/issues/3727
31
- # /usr/local/bin exists and is writable by any user
32
30
curl -s -L --fail -w 1 -o /tmp/hadolint \
33
31
" https://github.com/hadolint/hadolint/releases/download/v${VERSION} /hadolint-Linux-x86_64" ||
34
32
(echo " ::error::Hadolint (version: ${VERSION} ) could not be found. Exiting." && exit 1)
35
- mv /tmp/hadolint /usr/local/bin/hadolint
36
- chmod +x /usr/local/bin/hadolint
33
+ chmod +x /tmp/hadolint
34
+ # https://github.com/actions/runner-images/issues/3727
35
+ # /usr/local/bin exists and is writable by any user
36
+ # but some self hosted runners requires superpowers to write there
37
+ # https://github.com/jbergstroem/hadolint-gh-action/issues/144
38
+ sudo mv /tmp/hadolint /usr/local/bin/hadolint
37
39
fi
38
40
39
41
new_version=$( eval " ${EXTRACT_VERSION_CMD} " 2>&1 )
You can’t perform that action at this time.
0 commit comments