We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d227d60 commit 7e55fe8Copy full SHA for 7e55fe8
action.yml
@@ -6,7 +6,7 @@ runs:
6
- if: runner.os == 'Linux' && job.container.id != null
7
run: |
8
if grep -q '^ID=alpine$' /etc/os-release; then
9
- ROOT=$(mktemp -d)
+ ROOT=$(TMPDIR="$RUNNER_TEMP" mktemp -d)
10
apk add --root "$ROOT" --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
11
"$ROOT/usr/bin/docker" run --rm --net host --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$("$ROOT/usr/bin/docker" inspect '${{ job.container.id }}' --format "{{ .Image }}")" /hostfs /bin/bash -xc \
12
'exec sudo -u "$(stat -c "%U" -- "$7")" -- /bin/bash -xc "$@"' -- \
0 commit comments