nektos / act

Run your GitHub Actions locally πŸš€
https://nektosact.com
MIT License
55.11k stars 1.37k forks source link

Node is not mounted into nested container #732

Open wmmc88 opened 3 years ago

wmmc88 commented 3 years ago

System information

Expected behaviour

This should install node.

Actual behaviour

All 3 jobs fail to install node.

Workflow and/or repository

ci.yml contents:

name: CI

on:
  push:

defaults:
  run:
    shell: bash

jobs:
  dummy_1:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Node
        uses: actions/setup-node@v2
        with:
          node-version: '12.x'

  dummy_2:
    runs-on: ubuntu-latest
    container:
      image: catthehacker/ubuntu:full-20.04
    steps:
      - name: Setup Node
        uses: actions/setup-node@v2
        with:
          node-version: '12.x'

  dummy_3:
    runs-on: ubuntu-latest
    container:
      image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest
      options: -u root
    steps:
      - name: Setup Node
        uses: actions/setup-node@v2
        with:
          node-version: '12.x'     

~/.actrc contents:

-P ubuntu-latest=catthehacker/ubuntu:full-20.04
-s GITHUB_TOKEN=<GITHUB PAT>

Steps to reproduce

  1. mkdir -p test_repo/.github/workflows
  2. touch test_repo/.github/workflows/ci.yml and copy paste the above workflow
  3. make sure actrc has above contents
  4. cd test_repo
  5. act -v -j dummy_1
  6. act -v -j dummy_2
  7. act -v -j dummy_3

act output

Log ```none ~ ❯ cd test_repo/ ~/test_repo ❯ act -v -j dummy_1 DEBU[0000] Loading environment from /home/wmmc88/test_repo/.env DEBU[0000] Loading secrets from /home/wmmc88/test_repo/.secrets DEBU[0000] Loading workflows from '/home/wmmc88/test_repo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'ci.yml' in '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Reading workflow '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Correcting if statements '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Planning job: dummy_1 WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true] [CI/dummy_1] πŸš€ Start image=catthehacker/ubuntu:full-20.04 WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo [CI/dummy_1] 🐳 docker pull catthehacker/ubuntu:full-20.04 DEBU[0000] Image exists? true [CI/dummy_1] Removed container: d645971d0da79282065d65ab42880b52199a22df98c6e7f2c138da3ab9c837f9 [CI/dummy_1] 🐳 docker volume rm act-CI-dummy-1 [CI/dummy_1] 🐳 docker create image=catthehacker/ubuntu:full-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_1] Created container name=act-CI-dummy-1 id=d75f4c038a0508815545191e5667befbe657c66d4ad719008a460c630abf10c7 from image catthehacker/ubuntu:full-20.04 (platform: ) [CI/dummy_1] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [CI/dummy_1] 🐳 docker run image=catthehacker/ubuntu:full-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_1] Starting container: d75f4c038a0508815545191e5667befbe657c66d4ad719008a460c630abf10c7 [CI/dummy_1] Started container: d75f4c038a0508815545191e5667befbe657c66d4ad719008a460c630abf10c7 [CI/dummy_1] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [CI/dummy_1] Exec command '[mkdir -m 0777 -p /var/run/act]' 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/dummy_1] Extracting content to '/var/run/act/' WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DOTNET_MULTILEVEL_LOOKUP:"0" DOTNET_NOLOGO:"1" DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1" GECKOWEBDRIVER:/usr/local/share/gecko_driver GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PIPX_BIN_DIR:"/opt/pipx_bin" PIPX_HOME:"/opt/pipx" RUNNER_TEMP:/home/runner/work/_temp 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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DOTNET_MULTILEVEL_LOOKUP:"0" DOTNET_NOLOGO:"1" DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1" GECKOWEBDRIVER:/usr/local/share/gecko_driver GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PIPX_BIN_DIR:"/opt/pipx_bin" PIPX_HOME:"/opt/pipx" RUNNER_TEMP:/home/runner/work/_temp 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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive 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_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:dummy_1 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: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 GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INPUT_NODE-VERSION:12.x INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] [CI/dummy_1] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive 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_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:dummy_1 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN:*** GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INPUT_NODE-VERSION:12.x INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] [CI/dummy_1] ⭐ Run Setup Node WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo INFO[0000] ☁ git clone 'https://github.com/actions/setup-node' # ref=v2 DEBU[0000] cloning https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0000] Unable to pull refs/heads/v2: worktree contains unstaged changes DEBU[0000] Cloned https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0000] Checked out v2 DEBU[0000] Read action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} from '/home/wmmc88/.cache/act/actions-setup-node@v2/action.yml' DEBU[0000] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} DEBU[0000] Evaluating 'github['token']' instead of 'github.token' DEBU[0000] type=3 actionDir=/home/wmmc88/.cache/act/actions-setup-node@v2 actionPath= Workdir=/home/wmmc88/test_repo ActionCacheDir=/home/wmmc88/.cache/act actionName=actions-setup-node@v2 containerActionDir=/var/run/act/actions/actions-setup-node@v2 DEBU[0000] Removing /home/wmmc88/.cache/act/actions-setup-node@v2/.gitignore before docker cp [CI/dummy_1] 🐳 docker cp src=/home/wmmc88/.cache/act/actions-setup-node@v2/ dst=/var/run/act/actions/actions-setup-node@v2/ [CI/dummy_1] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-node@v2/] user= [CI/dummy_1] Exec command '[mkdir -p /var/run/act/actions/actions-setup-node@v2/]' DEBU[0001] Writing tarball /tmp/act921545805 from /home/wmmc88/.cache/act/actions-setup-node@v2/ DEBU[0001] Stripping prefix:/home/wmmc88/.cache/act/actions-setup-node@v2/ src:/home/wmmc88/.cache/act/actions-setup-node@v2/ [CI/dummy_1] Extracting content from '/tmp/act921545805' to '/var/run/act/actions/actions-setup-node@v2/' DEBU[0001] executing remote job container: [node /var/run/act/actions/actions-setup-node@v2/dist/index.js] [CI/dummy_1] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v2/dist/index.js] user= [CI/dummy_1] Exec command '[node /var/run/act/actions/actions-setup-node@v2/dist/index.js]' [CI/dummy_1] πŸ’¬ ::debug::isExplicit: [CI/dummy_1] πŸ’¬ ::debug::explicit? false [CI/dummy_1] πŸ’¬ ::debug::isExplicit: 10.23.0 [CI/dummy_1] πŸ’¬ ::debug::explicit? true [CI/dummy_1] πŸ’¬ ::debug::isExplicit: 12.20.0 [CI/dummy_1] πŸ’¬ ::debug::explicit? true [CI/dummy_1] πŸ’¬ ::debug::isExplicit: 14.15.1 [CI/dummy_1] πŸ’¬ ::debug::explicit? true [CI/dummy_1] πŸ’¬ ::debug::isExplicit: 8.17.0 [CI/dummy_1] πŸ’¬ ::debug::explicit? true [CI/dummy_1] πŸ’¬ ::debug::evaluating 4 versions [CI/dummy_1] πŸ’¬ ::debug::matched: 12.20.0 [CI/dummy_1] πŸ’¬ ::debug::checking cache: /opt/hostedtoolcache/node/12.20.0/x64 [CI/dummy_1] πŸ’¬ ::debug::Found tool in cache node 12.20.0 x64 | Found in cache @ /opt/hostedtoolcache/node/12.20.0/x64 [CI/dummy_1] ❗ ::error::EACCES: permission denied, open '/var/run/act/workflow/paths.txt' [CI/dummy_1] ❌ Failure - Setup Node DEBU[0001] exit with `FAILURE`: 1 Error: exit with `FAILURE`: 1 ~/test_repo ❯ act -v -j dummy_2 DEBU[0000] Loading environment from /home/wmmc88/test_repo/.env DEBU[0000] Loading secrets from /home/wmmc88/test_repo/.secrets DEBU[0000] Loading workflows from '/home/wmmc88/test_repo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'ci.yml' in '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Reading workflow '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Correcting if statements '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Planning job: dummy_2 WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true] [CI/dummy_2] πŸš€ Start image=catthehacker/ubuntu:full-20.04 WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo [CI/dummy_2] 🐳 docker pull catthehacker/ubuntu:full-20.04 DEBU[0000] Image exists? true [CI/dummy_2] Removed container: 32162d9a72cd3354b393242359d78b0d9bd536a26c9c4943f745fa139d9e09d7 [CI/dummy_2] 🐳 docker volume rm act-CI-dummy-2 [CI/dummy_2] 🐳 docker create image=catthehacker/ubuntu:full-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_2] Created container name=act-CI-dummy-2 id=f39547d40f9322029c44eaad48c69c25e288b5dbec6bb6e7d8f439decabd579a from image catthehacker/ubuntu:full-20.04 (platform: ) [CI/dummy_2] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [CI/dummy_2] 🐳 docker run image=catthehacker/ubuntu:full-20.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_2] Starting container: f39547d40f9322029c44eaad48c69c25e288b5dbec6bb6e7d8f439decabd579a [CI/dummy_2] Started container: f39547d40f9322029c44eaad48c69c25e288b5dbec6bb6e7d8f439decabd579a [CI/dummy_2] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [CI/dummy_2] Exec command '[mkdir -m 0777 -p /var/run/act]' 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/dummy_2] Extracting content to '/var/run/act/' WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DOTNET_MULTILEVEL_LOOKUP:"0" DOTNET_NOLOGO:"1" DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1" GECKOWEBDRIVER:/usr/local/share/gecko_driver GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PIPX_BIN_DIR:"/opt/pipx_bin" PIPX_HOME:"/opt/pipx" RUNNER_TEMP:/home/runner/work/_temp 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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive DOTNET_MULTILEVEL_LOOKUP:"0" DOTNET_NOLOGO:"1" DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1" GECKOWEBDRIVER:/usr/local/share/gecko_driver GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PIPX_BIN_DIR:"/opt/pipx_bin" PIPX_HOME:"/opt/pipx" RUNNER_TEMP:/home/runner/work/_temp 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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive 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_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:dummy_2 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: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 GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INPUT_NODE-VERSION:12.x INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] [CI/dummy_2] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache ANDROID_HOME:/usr/local/lib/android/sdk ANDROID_SDK_ROOT:/usr/local/lib/android/sdk ANT_HOME:/usr/share/ant AZURE_EXTENSION_DIR:/opt/az/azcliextensions BUILD:dev CHROMEWEBDRIVER:/usr/local/share/chrome_driver CHROME_BIN:/usr/bin/google-chrome CI:true CONDA:/usr/share/miniconda DEBIAN_FRONTEND:noninteractive 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_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:dummy_2 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN:*** GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo GOROOT:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_14_X64:/opt/hostedtoolcache/go/1.14.13/x64 GOROOT_1_15_X64:/opt/hostedtoolcache/go/1.15.6/x64 GRADLE_HOME:/usr/share/gradle HELPER_SCRIPTS:/imagegeneration/helpers HOMEBREW_CELLAR:"/home/linuxbrew/.linuxbrew/Cellar" HOMEBREW_PREFIX:"/home/linuxbrew/.linuxbrew" HOMEBREW_REPOSITORY:"/home/linuxbrew/.linuxbrew/Homebrew" IMAGEDATA_FILE:/imagegeneration/imagedata.json IMAGE_FOLDER:/imagegeneration INPUT_NODE-VERSION:12.x INSTALLER_SCRIPT_FOLDER:/imagegeneration/installers 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.5-standalone.jar LSB_RELEASE:20.04 M2_HOME:/usr/share/apache-maven-3.6.3 OSVERSION:2004 OS_VERSION:20.04 PATH:/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 VCPKG_INSTALLATION_ROOT:/usr/local/share/vcpkg] [CI/dummy_2] ⭐ Run Setup Node WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo INFO[0000] ☁ git clone 'https://github.com/actions/setup-node' # ref=v2 DEBU[0000] cloning https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0000] Unable to pull refs/heads/v2: worktree contains unstaged changes DEBU[0000] Cloned https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0001] Checked out v2 DEBU[0001] Read action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} from '/home/wmmc88/.cache/act/actions-setup-node@v2/action.yml' DEBU[0001] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} DEBU[0001] Evaluating 'github['token']' instead of 'github.token' DEBU[0001] type=3 actionDir=/home/wmmc88/.cache/act/actions-setup-node@v2 actionPath= Workdir=/home/wmmc88/test_repo ActionCacheDir=/home/wmmc88/.cache/act actionName=actions-setup-node@v2 containerActionDir=/var/run/act/actions/actions-setup-node@v2 DEBU[0001] Removing /home/wmmc88/.cache/act/actions-setup-node@v2/.gitignore before docker cp [CI/dummy_2] 🐳 docker cp src=/home/wmmc88/.cache/act/actions-setup-node@v2/ dst=/var/run/act/actions/actions-setup-node@v2/ [CI/dummy_2] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-node@v2/] user= [CI/dummy_2] Exec command '[mkdir -p /var/run/act/actions/actions-setup-node@v2/]' DEBU[0001] Writing tarball /tmp/act049490819 from /home/wmmc88/.cache/act/actions-setup-node@v2/ DEBU[0001] Stripping prefix:/home/wmmc88/.cache/act/actions-setup-node@v2/ src:/home/wmmc88/.cache/act/actions-setup-node@v2/ [CI/dummy_2] Extracting content from '/tmp/act049490819' to '/var/run/act/actions/actions-setup-node@v2/' DEBU[0001] executing remote job container: [node /var/run/act/actions/actions-setup-node@v2/dist/index.js] [CI/dummy_2] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v2/dist/index.js] user= [CI/dummy_2] Exec command '[node /var/run/act/actions/actions-setup-node@v2/dist/index.js]' [CI/dummy_2] πŸ’¬ ::debug::isExplicit: [CI/dummy_2] πŸ’¬ ::debug::explicit? false [CI/dummy_2] πŸ’¬ ::debug::isExplicit: 10.23.0 [CI/dummy_2] πŸ’¬ ::debug::explicit? true [CI/dummy_2] πŸ’¬ ::debug::isExplicit: 12.20.0 [CI/dummy_2] πŸ’¬ ::debug::explicit? true [CI/dummy_2] πŸ’¬ ::debug::isExplicit: 14.15.1 [CI/dummy_2] πŸ’¬ ::debug::explicit? true [CI/dummy_2] πŸ’¬ ::debug::isExplicit: 8.17.0 [CI/dummy_2] πŸ’¬ ::debug::explicit? true [CI/dummy_2] πŸ’¬ ::debug::evaluating 4 versions [CI/dummy_2] πŸ’¬ ::debug::matched: 12.20.0 [CI/dummy_2] πŸ’¬ ::debug::checking cache: /opt/hostedtoolcache/node/12.20.0/x64 [CI/dummy_2] πŸ’¬ ::debug::Found tool in cache node 12.20.0 x64 | Found in cache @ /opt/hostedtoolcache/node/12.20.0/x64 [CI/dummy_2] ❗ ::error::EACCES: permission denied, open '/var/run/act/workflow/paths.txt' [CI/dummy_2] ❌ Failure - Setup Node DEBU[0001] exit with `FAILURE`: 1 Error: exit with `FAILURE`: 1 ~/test_repo ❯ act -v -j dummy_3 DEBU[0000] Loading environment from /home/wmmc88/test_repo/.env DEBU[0000] Loading secrets from /home/wmmc88/test_repo/.secrets DEBU[0000] Loading workflows from '/home/wmmc88/test_repo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'ci.yml' in '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Reading workflow '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Correcting if statements '/home/wmmc88/test_repo/.github/workflows/ci.yml' DEBU[0000] Planning job: dummy_3 WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true] [CI/dummy_3] πŸš€ Start image=rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo [CI/dummy_3] 🐳 docker pull rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest DEBU[0000] Image exists? true [CI/dummy_3] Removed container: 0d17a868adf50b8478e2c59383880cf9f09be051cf02aa71026f5ed49496da8f [CI/dummy_3] 🐳 docker volume rm act-CI-dummy-3 [CI/dummy_3] 🐳 docker create image=rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_3] Created container name=act-CI-dummy-3 id=f6b57b71cb16b850a161b76a89b1b44227bb8e603fea4ad631401b0917cfbc49 from image rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest (platform: ) [CI/dummy_3] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [CI/dummy_3] 🐳 docker run image=rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-desktop-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/dummy_3] Starting container: f6b57b71cb16b850a161b76a89b1b44227bb8e603fea4ad631401b0917cfbc49 [CI/dummy_3] Started container: f6b57b71cb16b850a161b76a89b1b44227bb8e603fea4ad631401b0917cfbc49 [CI/dummy_3] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [CI/dummy_3] Exec command '[mkdir -m 0777 -p /var/run/act]' 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/dummy_3] Extracting content to '/var/run/act/' WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true PATH:"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"] WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo DEBU[0000] context env => map[ACT:true PATH:"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"] DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:dummy_3 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN: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 GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo INPUT_NODE-VERSION:12.x ImageOS:ubuntu20 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/dummy_3] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:dummy_3 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF: GITHUB_REPOSITORY: GITHUB_REPOSITORY_OWNER: GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA: GITHUB_TOKEN:*** GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/wmmc88/test_repo INPUT_NODE-VERSION:12.x ImageOS:ubuntu20 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/dummy_3] ⭐ Run Setup Node WARN[0000] unable to get git repo: unable to find git repo WARN[0000] unable to get git revision: unable to find git repo WARN[0000] unable to get git ref: unable to find git repo INFO[0000] ☁ git clone 'https://github.com/actions/setup-node' # ref=v2 DEBU[0000] cloning https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0000] Unable to pull refs/heads/v2: worktree contains unstaged changes DEBU[0000] Cloned https://github.com/actions/setup-node to /home/wmmc88/.cache/act/actions-setup-node@v2 DEBU[0000] Checked out v2 DEBU[0000] Read action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} from '/home/wmmc88/.cache/act/actions-setup-node@v2/action.yml' DEBU[0000] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH map[always-auth:{Set always-auth in npmrc false false} architecture:{Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec false false} node-version:{Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 false } 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 } token:{Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. false ${{ github.token }}} version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] [] []} { }} DEBU[0000] Evaluating 'github['token']' instead of 'github.token' DEBU[0000] type=3 actionDir=/home/wmmc88/.cache/act/actions-setup-node@v2 actionPath= Workdir=/home/wmmc88/test_repo ActionCacheDir=/home/wmmc88/.cache/act actionName=actions-setup-node@v2 containerActionDir=/var/run/act/actions/actions-setup-node@v2 DEBU[0000] Removing /home/wmmc88/.cache/act/actions-setup-node@v2/.gitignore before docker cp [CI/dummy_3] 🐳 docker cp src=/home/wmmc88/.cache/act/actions-setup-node@v2/ dst=/var/run/act/actions/actions-setup-node@v2/ [CI/dummy_3] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-node@v2/] user= [CI/dummy_3] Exec command '[mkdir -p /var/run/act/actions/actions-setup-node@v2/]' DEBU[0000] Writing tarball /tmp/act639928664 from /home/wmmc88/.cache/act/actions-setup-node@v2/ DEBU[0000] Stripping prefix:/home/wmmc88/.cache/act/actions-setup-node@v2/ src:/home/wmmc88/.cache/act/actions-setup-node@v2/ [CI/dummy_3] Extracting content from '/tmp/act639928664' to '/var/run/act/actions/actions-setup-node@v2/' DEBU[0001] executing remote job container: [node /var/run/act/actions/actions-setup-node@v2/dist/index.js] [CI/dummy_3] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v2/dist/index.js] user= [CI/dummy_3] Exec command '[node /var/run/act/actions/actions-setup-node@v2/dist/index.js]' | OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "node": executable file not found in $PATH: unknown [CI/dummy_3] ❌ Failure - Setup Node DEBU[0001] exit with `FAILURE`: 126 Error: exit with `FAILURE`: 126 ```
catthehacker commented 3 years ago

dummy 1 and 2 are fixed by #726 dummy 3: your image needs nodeJS installed to work properly

wmmc88 commented 3 years ago

dummy 3: your image needs nodeJS installed to work properly

Is this a requirement of act or of github actions? I created a dummy repo to test it out and the dummy_3 job works fine? https://github.com/wmmc88/test-repo/runs/2788192719

Since the dummy_3 is set to runs-on: ubuntu-latest, shouldn't it pick up -P ubuntu-latest=catthehacker/ubuntu:full-20.04 from my .actrc and run the docker commands from within that image?

I'm not really sure how js github actions work, but I'm don't understand why this executes fine on github's runners, but breaks in act

catthehacker commented 3 years ago

Oh okay, I looked at workflow now and unfortunately, that's something I've yet to fix since GitHub mounts all tools into containers and we kind of do too but we don't have any tools in those paths thus it breaks

catthehacker commented 3 years ago

Since the dummy_3 is set to runs-on: ubuntu-latest, shouldn't it pick up -P ubuntu-latest=catthehacker/ubuntu:full-20.04 from my .actrc and run the docker commands from within that image?

Yes, but also you specify container: in workflow which overrides where everything is executed and we don't support that well (yet)

kei-yamazaki commented 3 years ago

Do you have any updates on this Issue?

I am using "actions/checkout@v2" and "https://github.com/myoung34/docker-github-actions-runner" and am facing the same problem of node not found in PATH.

It will be difficult to support all the tools in the github-hosted runner, but I think it is desirable to support node first.

% act --version
act version 0.2.24

% cat checkout.yml
name: Checkout
on: [push]
jobs:
  Checkout:
    runs-on: [self-hosted, my-runner]
    steps:
      - uses: actions/checkout@v2
        with:
          repository: "myoung34/docker-github-actions-runner"

% act -W checkout.yml -P my-runner=myoung34/github-runner:latest
WARN  ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
[Checkout/Checkout] πŸš€  Start image=myoung34/github-runner:latest
[Checkout/Checkout]   🐳  docker run image=myoung34/github-runner:latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Checkout/Checkout]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Checkout/Checkout] ⭐  Run actions/checkout@v2
INFO[0000]   ☁  git clone 'https://github.com/actions/checkout' # ref=v2
[Checkout/Checkout]   🐳  docker cp src=/Users/kei/.cache/act/actions-checkout@v2/ dst=/var/run/act/actions/actions-checkout@v2/
[Checkout/Checkout]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-checkout@v2/] user=
[Checkout/Checkout]   🐳  docker exec cmd=[node /var/run/act/actions/actions-checkout@v2/dist/index.js] user=
| OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "node": executable file not found in $PATH: unknown
[Checkout/Checkout]   ❌  Failure - actions/checkout@v2
Error: exit with `FAILURE`: 126
catthehacker commented 3 years ago

You are using custom image, please contact image maintainer to include node

kei-yamazaki commented 3 years ago

Thanks for the reply.

I am using a custom image, which already has node installed.

The custom image has already run the script to install the official github self-hosted runner, and I can actually run the same workflow successfully as a self-hosted runner.

You have marked my previous comment as off-topic, but I believe the essential problem is the same as this Issue.

I think the two issues are as follows.

  1. The results are different between GitHub and act, even if the same custom image / workflow is used.
  2. There is no documentation describing the requirements for using custom images in act.

Especially regarding No.1, I understand that it is technically difficult to support all the requirements of GitHub in act. However, if the behavior is different between GitHub and act, that should be fixed by the act side.

catthehacker commented 3 years ago

You have marked my previous comment as off-topic, but I believe the essential problem is the same as this Issue.

The issue is not the same. I marked your comment as off-topic since OP issue is with act not supporting container: option and not with NodeJS (since other issue was already fixed).

I am using a custom image, which already has node installed.

I have no idea of what's wrong since your description is vague without any useful information. Create new issue and follow the template.

g3kk0 commented 1 year ago

Are there any updates on this? I really love this tool but without support for running things in containers without node makes using this very restrictive.

Aeolun commented 1 year ago

Well, that put a damper on my enthusiasm. Happily start running my first workflow only to be greeted by 'node' doesn't exist for the... checkout action. Would you be open to pull requests for this?

KnisterPeter commented 1 year ago

@Aeolun sure go ahead

alexjorgef commented 1 year ago

Using this simple workflow I'm having the same issue (test A pass and test B fail):

on: push
jobs:
  test-a:
    runs-on: ubuntu-latest
    steps:
    - run: uname -a
    - uses: actions/setup-node@v3
  test-b:
    needs: test-a
    runs-on: ubuntu-latest
    container: ljmf00/archlinux:devel
    steps:
    - run: uname -a
    - uses: actions/setup-node@v3

From my understanding, when a GitHub Action for JavaScript defines the runs syntax as actions/setup-node does, the path for node runtime its located at runs-on definition and not on container.

Logs:

[act-bug-containers.yaml/test-a] πŸš€  Start image=catthehacker/ubuntu:act-latest
[act-bug-containers.yaml/test-a]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[act-bug-containers.yaml/test-a]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[act-bug-containers.yaml/test-a]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[act-bug-containers.yaml/test-a]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v3
[act-bug-containers.yaml/test-a] ⭐ Run Main uname -a
[act-bug-containers.yaml/test-a]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir=
| Linux alex-pc 6.3.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000 x86_64 x86_64 x86_64 GNU/Linux
[act-bug-containers.yaml/test-a]   βœ…  Success - Main uname -a
[act-bug-containers.yaml/test-a] ⭐ Run Main actions/setup-node@v3
[act-bug-containers.yaml/test-a]   🐳  docker cp src=/home/alex/.cache/act/actions-setup-node@v3/ dst=/var/run/act/actions/actions-setup-node@v3/
[act-bug-containers.yaml/test-a]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir=
[act-bug-containers.yaml/test-a]   ❓  ::group::Environment details
| node: v16.20.0
| npm: 8.19.4
| yarn: 
[act-bug-containers.yaml/test-a]   ❓  ::endgroup::
[act-bug-containers.yaml/test-a]   ❓ add-matcher /run/act/actions/actions-setup-node@v3/.github/tsc.json
[act-bug-containers.yaml/test-a]   ❓ add-matcher /run/act/actions/actions-setup-node@v3/.github/eslint-stylish.json
[act-bug-containers.yaml/test-a]   ❓ add-matcher /run/act/actions/actions-setup-node@v3/.github/eslint-compact.json
[act-bug-containers.yaml/test-a]   βœ…  Success - Main actions/setup-node@v3
[act-bug-containers.yaml/test-a]   βš™  ::set-output:: node-version=v16.20.0
[act-bug-containers.yaml/test-a] ⭐ Run Post actions/setup-node@v3
[act-bug-containers.yaml/test-a]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/cache-save/index.js] user= workdir=
[act-bug-containers.yaml/test-a]   πŸ’¬  ::debug::Caching for '' is not supported
[act-bug-containers.yaml/test-a]   βœ…  Success - Post actions/setup-node@v3
[act-bug-containers.yaml/test-a] 🏁  Job succeeded
[act-bug-containers.yaml/test-b] πŸš€  Start image=ljmf00/archlinux:devel
[act-bug-containers.yaml/test-b]   🐳  docker pull image=ljmf00/archlinux:devel platform= username= forcePull=true
[act-bug-containers.yaml/test-b]   🐳  docker create image=ljmf00/archlinux:devel platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[act-bug-containers.yaml/test-b]   🐳  docker run image=ljmf00/archlinux:devel platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[act-bug-containers.yaml/test-b]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v3
[act-bug-containers.yaml/test-b] ⭐ Run Main uname -a
[act-bug-containers.yaml/test-b]   🐳  docker exec cmd=[sh -e /var/run/act/workflow/0.sh] user= workdir=
| Linux alex-pc 6.3.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000 x86_64 GNU/Linux
[act-bug-containers.yaml/test-b]   βœ…  Success - Main uname -a
[act-bug-containers.yaml/test-b] ⭐ Run Main actions/setup-node@v3
[act-bug-containers.yaml/test-b]   🐳  docker cp src=/home/alex/.cache/act/actions-setup-node@v3/ dst=/var/run/act/actions/actions-setup-node@v3/
[act-bug-containers.yaml/test-b]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir=
| OCI runtime exec failed: exec failed: unable to start container process: exec: "node": executable file not found in $PATH: unknown
[act-bug-containers.yaml/test-b]   ❌  Failure - Main actions/setup-node@v3
[act-bug-containers.yaml/test-b] exitcode '126': failure
[act-bug-containers.yaml/test-b] 🏁  Job failed
Error: Job 'test-b' failed
beriberikix commented 1 year ago

Is this particular issue a matter of the base image not containing node? Are there alternative images that do?

bestlinuxgamers commented 6 months ago

I did some reverse-engineering on how github provides node.

It seems that github includes a read-only docker volume under /__e/ in every container (even if the runtime is not used by any action). Each subfolder in this volume represents a runtime. The following runtimes are currently available: node16, node16_alpine, node20, node20_alpine.

Now in the example of a Node-20 action, the following command is simply executed: /__e/node20/bin/node /__w/_actions/<organization>/<action-name>/<tag>/<path-to-main>/main.js Basically, node runs from the environment folder and gets the main class of the action as an argument.

To implement this, we would need: