From c186eb5e82efc7ff0ba7facadb4dde9d435528af Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Wed, 15 Nov 2023 11:03:56 -0500 Subject: [PATCH] Use root as `runner` user makes files that can't be moved Related: https://github.com/actions/runner/issues/434 --- .github/actions/build-rwasm/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/build-rwasm/Dockerfile b/.github/actions/build-rwasm/Dockerfile index eb7d39d..d25e80c 100644 --- a/.github/actions/build-rwasm/Dockerfile +++ b/.github/actions/build-rwasm/Dockerfile @@ -1,6 +1,10 @@ # Container image that runs your code FROM ghcr.io/r-wasm/webr:main +# Needed to be able to adjust files after running Dockerfile +# Related: https://github.com/actions/runner/issues/434 +USER root + # Copies your code file from your action repository to the filesystem path `/` of the container COPY code.R /code.R