Skip to content

Commit 7e55fe8

Browse files
authored
Use $RUNNER_TEMP
1 parent d227d60 commit 7e55fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
- if: runner.os == 'Linux' && job.container.id != null
77
run: |
88
if grep -q '^ID=alpine$' /etc/os-release; then
9-
ROOT=$(mktemp -d)
9+
ROOT=$(TMPDIR="$RUNNER_TEMP" mktemp -d)
1010
apk add --root "$ROOT" --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
1111
"$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 \
1212
'exec sudo -u "$(stat -c "%U" -- "$7")" -- /bin/bash -xc "$@"' -- \

0 commit comments

Comments
 (0)