[GH-ISSUE #1196] mkdir: cannot create directory '/var/run/act/actions': Permission denied #669

Closed
opened 2026-03-01 21:45:23 +03:00 by kerem · 2 comments
Owner

Originally created by @oliversalzburg on GitHub (Jun 3, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1196

Bug report info

act version:            0.2.26
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
Config files:
        /home/oliver/.actrc:
                -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest
                -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:full-20.04
                -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:full-18.04
Docker Engine:
        Engine version:        20.10.14
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:
        OS arch:               x86_64
        OS kernel:             5.10.102.1-microsoft-standard-WSL2
        OS CPU:                12
        OS memory:             51336 MB
        Security options:
                name=seccomp,profile=default


### Command used with act

```sh
`act`

Describe issue

Running act always results in permission related issues.

https://github.com/cplee/github-actions-demo

Workflow content

name: CI
on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
    - run: npm install
    - run: npm test

Relevant log output

DEBU[0000] Loading environment from /home/oliver/projects/github-actions-demo/.env
DEBU[0000] Loading secrets from /home/oliver/projects/github-actions-demo/.secrets
DEBU[0000] Loading workflows from '/home/oliver/projects/github-actions-demo/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'main.yml' in '/home/oliver/projects/github-actions-demo/.github/workflows/main.yml'
DEBU[0000] Reading workflow '/home/oliver/projects/github-actions-demo/.github/workflows/main.yml'
DEBU[0000] Planning event: push
DEBU[0000] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0000] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0000] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0000] using github ref: refs/heads/master
DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0000] evaluating expression 'success()'
DEBU[0000] expression 'success()' evaluated to 'true'
[CI/test] 🚀  Start image=ghcr.io/catthehacker/ubuntu:full-latest
DEBU[0000] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0000] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0000] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0000] using github ref: refs/heads/master
DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:full-latest platform= username= forcePull=false
[CI/test]   🐳  docker pull ghcr.io/catthehacker/ubuntu:full-latest
DEBU[0000] Image exists? true
[CI/test] Removed container: a5fca5b8ea537991705d70434eb420082dfa45ce7bdf538ab4a3cc92c42b42a0
[CI/test]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test] Created container name=act-CI-test id=a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050 from image ghcr.io/catthehacker/ubuntu:full-latest (platform: )
[CI/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[CI/test]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test] Starting container: a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050
[CI/test] Started container: a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050
[CI/test]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[CI/test] Exec command '[mkdir -m 0777 -p /var/run/act]'
[CI/test] Working directory '/home/oliver/projects/github-actions-demo'
[CI/test]   🐳  docker cp src=/home/oliver/projects/github-actions-demo/. dst=/home/oliver/projects/github-actions-demo
[CI/test]   🐳  docker exec cmd=[mkdir -p /home/oliver/projects/github-actions-demo] user= workdir=
[CI/test] Exec command '[mkdir -p /home/oliver/projects/github-actions-demo]'
[CI/test] Working directory '/home/oliver/projects/github-actions-demo'
DEBU[0000] Writing tarball /tmp/act1682557638 from /home/oliver/projects/github-actions-demo/.
DEBU[0000] Stripping prefix:/home/oliver/projects/github-actions-demo/ src:/home/oliver/projects/github-actions-demo/.
[CI/test] Extracting content from '/tmp/act1682557638' to '/home/oliver/projects/github-actions-demo'
DEBU[0000] Writing entry to tarball workflow/event.json len:2
DEBU[0000] Writing entry to tarball workflow/envs.txt len:0
DEBU[0000] Writing entry to tarball workflow/paths.txt len:0
[CI/test] Extracting content to '/var/run/act/'
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] evaluating expression ''
DEBU[0001] expression '' evaluated to 'true'
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] setupEnv => map[ACCEPT_EULA:Y ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_NDK_HOME:/usr/local/lib/android/sdk/ndk-bundle ANDROID_NDK_LATEST_HOME:/usr/local/lib/android/sdk/ndk/22.1.7171670 ANDROID_NDK_ROOT:/usr/local/lib/android/sdk/ndk-bundle ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BOOTSTRAP_HASKELL_NONINTERACTIVE:1 CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner DOTNET_MULTILEVEL_LOOKUP:0 DOTNET_NOLOGO:1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE:1 GECKOWEBDRIVER:/usr/local/share/gecko_driver GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/oliver/projects/github-actions-demo GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.15/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.15/x64 GOROOT_1_16_X64:/opt/hostedtoolcache/go/1.16.7/x64 GRAALVM_11_ROOT:/usr/local/graalvm/graalvm-ce-java11-21.2.0 GRADLE_HOME:/usr/share/gradle-7.2 HOMEBREW_CELLAR:/home/linuxbrew/.linuxbrew/Cellar HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:3650 HOMEBREW_NO_AUTO_UPDATE:1 HOMEBREW_PREFIX:/home/linuxbrew/.linuxbrew HOMEBREW_REPOSITORY:/home/linuxbrew/.linuxbrew/Homebrew HOMEBREW_SHELLENV_PREFIX:/home/linuxbrew/.linuxbrew IMAGE_OS:ubuntu20 ImageOS:ubuntu20 ImageVersion:dev JAVA_HOME:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_11_X64:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_8_X64:/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 LEIN_HOME:/usr/local/lib/lein LEIN_JAR:/usr/local/lib/lein/self-installs/leiningen-2.9.6-standalone.jar LSB_OS_VERSION:2004 LSB_RELEASE:20.04 NVM_DIR:/home/runner/.nvm PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/runner/.local/bin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/opt/hostedtoolcache/node/14.17.5/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PIPX_BIN_DIR:/opt/pipx_bin PIPX_HOME:/opt/pipx RUNNER_PERFLOG:/dev/null RUNNER_TEMP:/home/runner/work/_temp RUNNER_TRACKING_ID: RUNNER_USER:runner RUN_TOOL_CACHE:/opt/hostedtoolcache SELENIUM_JAR_PATH:/usr/share/java/selenium-server-standalone.jar SWIFT_PATH:/usr/share/swift/usr/bin USER:runner VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg XDG_CONFIG_HOME:/home/runner/.config]
[CI/test] ⭐  Run actions/checkout@v2
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] Skipping local actions/checkout because workdir was already copied
[CI/test]   ✅  Success - actions/checkout@v2
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] evaluating expression ''
DEBU[0001] expression '' evaluated to 'true'
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] setupEnv => map[ACCEPT_EULA:Y ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_NDK_HOME:/usr/local/lib/android/sdk/ndk-bundle ANDROID_NDK_LATEST_HOME:/usr/local/lib/android/sdk/ndk/22.1.7171670 ANDROID_NDK_ROOT:/usr/local/lib/android/sdk/ndk-bundle ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BOOTSTRAP_HASKELL_NONINTERACTIVE:1 CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner DOTNET_MULTILEVEL_LOOKUP:0 DOTNET_NOLOGO:1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE:1 GECKOWEBDRIVER:/usr/local/share/gecko_driver GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/oliver/projects/github-actions-demo GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.15/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.15/x64 GOROOT_1_16_X64:/opt/hostedtoolcache/go/1.16.7/x64 GRAALVM_11_ROOT:/usr/local/graalvm/graalvm-ce-java11-21.2.0 GRADLE_HOME:/usr/share/gradle-7.2 HOMEBREW_CELLAR:/home/linuxbrew/.linuxbrew/Cellar HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:3650 HOMEBREW_NO_AUTO_UPDATE:1 HOMEBREW_PREFIX:/home/linuxbrew/.linuxbrew HOMEBREW_REPOSITORY:/home/linuxbrew/.linuxbrew/Homebrew HOMEBREW_SHELLENV_PREFIX:/home/linuxbrew/.linuxbrew IMAGE_OS:ubuntu20 ImageOS:ubuntu20 ImageVersion:dev JAVA_HOME:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_11_X64:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_8_X64:/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 LEIN_HOME:/usr/local/lib/lein LEIN_JAR:/usr/local/lib/lein/self-installs/leiningen-2.9.6-standalone.jar LSB_OS_VERSION:2004 LSB_RELEASE:20.04 NVM_DIR:/home/runner/.nvm PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/runner/.local/bin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/opt/hostedtoolcache/node/14.17.5/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PIPX_BIN_DIR:/opt/pipx_bin PIPX_HOME:/opt/pipx RUNNER_PERFLOG:/dev/null RUNNER_TEMP:/home/runner/work/_temp RUNNER_TRACKING_ID: RUNNER_USER:runner RUN_TOOL_CACHE:/opt/hostedtoolcache SELENIUM_JAR_PATH:/usr/share/java/selenium-server-standalone.jar SWIFT_PATH:/usr/share/swift/usr/bin USER:runner VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg XDG_CONFIG_HOME:/home/runner/.config]
[CI/test] ⭐  Run actions/setup-node@v1
DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0001] using github ref: refs/heads/master
DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test]   cloning https://github.com/actions/setup-node to /root/.cache/act/actions-setup-node@v1
[CI/test] Unable to pull refs/heads/v1: non-fast-forward update
[CI/test] Cloned https://github.com/actions/setup-node to /root/.cache/act/actions-setup-node@v1
[CI/test] Checked out v1
DEBU[0001] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js   [] []} { }} from 'Unknown'
DEBU[0001] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js   [] []} { }} from 'Unknown'
DEBU[0001] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js   [] []} { }}
DEBU[0001] type=3 actionDir=/root/.cache/act/actions-setup-node@v1 actionPath= workdir=/home/oliver/projects/github-actions-demo actionCacheDir=/root/.cache/act actionName=actions-setup-node@v1 containerActionDir=/var/run/act/actions/actions-setup-node@v1
DEBU[0001] Removing /root/.cache/act/actions-setup-node@v1/.gitignore before docker cp
DEBU[0001] /var/run/act/actions/actions-setup-node@v1
[CI/test]   🐳  docker cp src=/root/.cache/act/actions-setup-node@v1/ dst=/var/run/act/actions/actions-setup-node@v1/
[CI/test]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-node@v1/] user= workdir=
[CI/test] Exec command '[mkdir -p /var/run/act/actions/actions-setup-node@v1/]'
[CI/test] Working directory '/home/oliver/projects/github-actions-demo'
| mkdir: cannot create directory '/var/run/act/actions': Permission denied
[CI/test]   ❌  Failure - actions/setup-node@v1
[CI/test] exit with `FAILURE`: 1
DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0002] evaluating expression ''
DEBU[0002] expression '' evaluated to 'false'
DEBU[0002] Skipping step 'npm install' due to ''
DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0002] evaluating expression ''
DEBU[0002] expression '' evaluated to 'false'
DEBU[0002] Skipping step 'npm test' due to ''
DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git'
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
Error: Job 'test' failed

Additional information

I'm seeing these issues with the project I want to work on, but this reproduces easily with the demo repository, as shown above.

Originally created by @oliversalzburg on GitHub (Jun 3, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1196 ### Bug report info ```plain text act version: 0.2.26 GOOS: linux GOARCH: amd64 NumCPU: 12 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: /home/oliver/.actrc: -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:full-18.04 Docker Engine: Engine version: 20.10.14 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: x86_64 OS kernel: 5.10.102.1-microsoft-standard-WSL2 OS CPU: 12 OS memory: 51336 MB Security options: name=seccomp,profile=default ``` ``` ### Command used with act ```sh `act` ``` ### Describe issue Running `act` always results in permission related issues. ### Link to GitHub repository https://github.com/cplee/github-actions-demo ### Workflow content ```yml name: CI on: push jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - run: npm install - run: npm test ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /home/oliver/projects/github-actions-demo/.env DEBU[0000] Loading secrets from /home/oliver/projects/github-actions-demo/.secrets DEBU[0000] Loading workflows from '/home/oliver/projects/github-actions-demo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'main.yml' in '/home/oliver/projects/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Reading workflow '/home/oliver/projects/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Planning event: push DEBU[0000] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0000] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0000] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0000] using github ref: refs/heads/master DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0000] evaluating expression 'success()' DEBU[0000] expression 'success()' evaluated to 'true' [CI/test] 🚀 Start image=ghcr.io/catthehacker/ubuntu:full-latest DEBU[0000] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0000] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0000] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0000] using github ref: refs/heads/master DEBU[0000] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:full-latest platform= username= forcePull=false [CI/test] 🐳 docker pull ghcr.io/catthehacker/ubuntu:full-latest DEBU[0000] Image exists? true [CI/test] Removed container: a5fca5b8ea537991705d70434eb420082dfa45ce7bdf538ab4a3cc92c42b42a0 [CI/test] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/test] Created container name=act-CI-test id=a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050 from image ghcr.io/catthehacker/ubuntu:full-latest (platform: ) [CI/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [CI/test] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/test] Starting container: a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050 [CI/test] Started container: a40236997bcf62e3539f7665d79bd939cffd6f8c57e3bfcdfde6c5489b118050 [CI/test] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir= [CI/test] Exec command '[mkdir -m 0777 -p /var/run/act]' [CI/test] Working directory '/home/oliver/projects/github-actions-demo' [CI/test] 🐳 docker cp src=/home/oliver/projects/github-actions-demo/. dst=/home/oliver/projects/github-actions-demo [CI/test] 🐳 docker exec cmd=[mkdir -p /home/oliver/projects/github-actions-demo] user= workdir= [CI/test] Exec command '[mkdir -p /home/oliver/projects/github-actions-demo]' [CI/test] Working directory '/home/oliver/projects/github-actions-demo' DEBU[0000] Writing tarball /tmp/act1682557638 from /home/oliver/projects/github-actions-demo/. DEBU[0000] Stripping prefix:/home/oliver/projects/github-actions-demo/ src:/home/oliver/projects/github-actions-demo/. [CI/test] Extracting content from '/tmp/act1682557638' to '/home/oliver/projects/github-actions-demo' DEBU[0000] Writing entry to tarball workflow/event.json len:2 DEBU[0000] Writing entry to tarball workflow/envs.txt len:0 DEBU[0000] Writing entry to tarball workflow/paths.txt len:0 [CI/test] Extracting content to '/var/run/act/' DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] evaluating expression '' DEBU[0001] expression '' evaluated to 'true' DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] setupEnv => map[ACCEPT_EULA:Y ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_NDK_HOME:/usr/local/lib/android/sdk/ndk-bundle ANDROID_NDK_LATEST_HOME:/usr/local/lib/android/sdk/ndk/22.1.7171670 ANDROID_NDK_ROOT:/usr/local/lib/android/sdk/ndk-bundle ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BOOTSTRAP_HASKELL_NONINTERACTIVE:1 CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner DOTNET_MULTILEVEL_LOOKUP:0 DOTNET_NOLOGO:1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE:1 GECKOWEBDRIVER:/usr/local/share/gecko_driver GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/oliver/projects/github-actions-demo GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.15/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.15/x64 GOROOT_1_16_X64:/opt/hostedtoolcache/go/1.16.7/x64 GRAALVM_11_ROOT:/usr/local/graalvm/graalvm-ce-java11-21.2.0 GRADLE_HOME:/usr/share/gradle-7.2 HOMEBREW_CELLAR:/home/linuxbrew/.linuxbrew/Cellar HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:3650 HOMEBREW_NO_AUTO_UPDATE:1 HOMEBREW_PREFIX:/home/linuxbrew/.linuxbrew HOMEBREW_REPOSITORY:/home/linuxbrew/.linuxbrew/Homebrew HOMEBREW_SHELLENV_PREFIX:/home/linuxbrew/.linuxbrew IMAGE_OS:ubuntu20 ImageOS:ubuntu20 ImageVersion:dev JAVA_HOME:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_11_X64:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_8_X64:/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 LEIN_HOME:/usr/local/lib/lein LEIN_JAR:/usr/local/lib/lein/self-installs/leiningen-2.9.6-standalone.jar LSB_OS_VERSION:2004 LSB_RELEASE:20.04 NVM_DIR:/home/runner/.nvm PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/runner/.local/bin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/opt/hostedtoolcache/node/14.17.5/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PIPX_BIN_DIR:/opt/pipx_bin PIPX_HOME:/opt/pipx RUNNER_PERFLOG:/dev/null RUNNER_TEMP:/home/runner/work/_temp RUNNER_TRACKING_ID: RUNNER_USER:runner RUN_TOOL_CACHE:/opt/hostedtoolcache SELENIUM_JAR_PATH:/usr/share/java/selenium-server-standalone.jar SWIFT_PATH:/usr/share/swift/usr/bin USER:runner VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg XDG_CONFIG_HOME:/home/runner/.config] [CI/test] ⭐ Run actions/checkout@v2 DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] Skipping local actions/checkout because workdir was already copied [CI/test] ✅ Success - actions/checkout@v2 DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] evaluating expression '' DEBU[0001] expression '' evaluated to 'true' DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] setupEnv => map[ACCEPT_EULA:Y ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_NDK_HOME:/usr/local/lib/android/sdk/ndk-bundle ANDROID_NDK_LATEST_HOME:/usr/local/lib/android/sdk/ndk/22.1.7171670 ANDROID_NDK_ROOT:/usr/local/lib/android/sdk/ndk-bundle ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BOOTSTRAP_HASKELL_NONINTERACTIVE:1 CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner DOTNET_MULTILEVEL_LOOKUP:0 DOTNET_NOLOGO:1 DOTNET_SKIP_FIRST_TIME_EXPERIENCE:1 GECKOWEBDRIVER:/usr/local/share/gecko_driver GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/oliver/projects/github-actions-demo GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.15/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.15/x64 GOROOT_1_16_X64:/opt/hostedtoolcache/go/1.16.7/x64 GRAALVM_11_ROOT:/usr/local/graalvm/graalvm-ce-java11-21.2.0 GRADLE_HOME:/usr/share/gradle-7.2 HOMEBREW_CELLAR:/home/linuxbrew/.linuxbrew/Cellar HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:3650 HOMEBREW_NO_AUTO_UPDATE:1 HOMEBREW_PREFIX:/home/linuxbrew/.linuxbrew HOMEBREW_REPOSITORY:/home/linuxbrew/.linuxbrew/Homebrew HOMEBREW_SHELLENV_PREFIX:/home/linuxbrew/.linuxbrew IMAGE_OS:ubuntu20 ImageOS:ubuntu20 ImageVersion:dev JAVA_HOME:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_11_X64:/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 JAVA_HOME_8_X64:/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64 LEIN_HOME:/usr/local/lib/lein LEIN_JAR:/usr/local/lib/lein/self-installs/leiningen-2.9.6-standalone.jar LSB_OS_VERSION:2004 LSB_RELEASE:20.04 NVM_DIR:/home/runner/.nvm PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/runner/.local/bin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/opt/hostedtoolcache/node/14.17.5/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PIPX_BIN_DIR:/opt/pipx_bin PIPX_HOME:/opt/pipx RUNNER_PERFLOG:/dev/null RUNNER_TEMP:/home/runner/work/_temp RUNNER_TRACKING_ID: RUNNER_USER:runner RUN_TOOL_CACHE:/opt/hostedtoolcache SELENIUM_JAR_PATH:/usr/share/java/selenium-server-standalone.jar SWIFT_PATH:/usr/share/swift/usr/bin USER:runner VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg XDG_CONFIG_HOME:/home/runner/.config] [CI/test] ⭐ Run actions/setup-node@v1 DEBU[0001] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0001] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0001] using github ref: refs/heads/master DEBU[0001] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] ☁ git clone 'https://github.com/actions/setup-node' # ref=v1 [CI/test] cloning https://github.com/actions/setup-node to /root/.cache/act/actions-setup-node@v1 [CI/test] Unable to pull refs/heads/v1: non-fast-forward update [CI/test] Cloned https://github.com/actions/setup-node to /root/.cache/act/actions-setup-node@v1 [CI/test] Checked out v1 DEBU[0001] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] []} { }} from 'Unknown' DEBU[0001] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] []} { }} from 'Unknown' DEBU[0001] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] []} { }} DEBU[0001] type=3 actionDir=/root/.cache/act/actions-setup-node@v1 actionPath= workdir=/home/oliver/projects/github-actions-demo actionCacheDir=/root/.cache/act actionName=actions-setup-node@v1 containerActionDir=/var/run/act/actions/actions-setup-node@v1 DEBU[0001] Removing /root/.cache/act/actions-setup-node@v1/.gitignore before docker cp DEBU[0001] /var/run/act/actions/actions-setup-node@v1 [CI/test] 🐳 docker cp src=/root/.cache/act/actions-setup-node@v1/ dst=/var/run/act/actions/actions-setup-node@v1/ [CI/test] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-node@v1/] user= workdir= [CI/test] Exec command '[mkdir -p /var/run/act/actions/actions-setup-node@v1/]' [CI/test] Working directory '/home/oliver/projects/github-actions-demo' | mkdir: cannot create directory '/var/run/act/actions': Permission denied [CI/test] ❌ Failure - actions/setup-node@v1 [CI/test] exit with `FAILURE`: 1 DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0002] using github ref: refs/heads/master DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'false' DEBU[0002] Skipping step 'npm install' due to '' DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0002] using github ref: refs/heads/master DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'false' DEBU[0002] Skipping step 'npm test' due to '' DEBU[0002] Loading slug from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Loading revision from git directory '/home/oliver/projects/github-actions-demo/.git' DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0002] HEAD points to '5c6f585b1f9d8526c8e1672c5f8f00883b895d93' DEBU[0002] using github ref: refs/heads/master DEBU[0002] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 Error: Job 'test' failed ``` ### Additional information I'm seeing these issues with the project I want to work on, but this reproduces easily with the demo repository, as shown above.
kerem 2026-03-01 21:45:23 +03:00
Author
Owner

@oliversalzburg commented on GitHub (Jun 3, 2022):

In another project, the process will fail at yarn install, because it can't write files in the working directory:

| Internal Error: EACCES: permission denied, mkdir '/home/oliver/projects/plantdb/.yarn/cache'
| Error: EACCES: permission denied, mkdir '/home/oliver/projects/plantdb/.yarn/cache'

All of this is very unexpected, because even running act with sudo does not change this behavior.

<!-- gh-comment-id:1145910213 --> @oliversalzburg commented on GitHub (Jun 3, 2022): In another project, the process will fail at `yarn install`, because it can't write files in the working directory: ```shell | Internal Error: EACCES: permission denied, mkdir '/home/oliver/projects/plantdb/.yarn/cache' | Error: EACCES: permission denied, mkdir '/home/oliver/projects/plantdb/.yarn/cache' ``` All of this is very unexpected, because even running `act` with `sudo` does not change this behavior.
Author
Owner

@catthehacker commented on GitHub (Jun 3, 2022):

duplicate of #935

<!-- gh-comment-id:1145912820 --> @catthehacker commented on GitHub (Jun 3, 2022): duplicate of #935
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#669
No description provided.