Skip to content

Error "unable to get local issuer certificate" #1396

@mu88

Description

@mu88

Description:
When running the minimalistic sample, the following error occurs when installing Node.js:
::error::unable to get local issuer certificate

Action version:
actions/setup-node@5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Node.js v24

Repro steps:

name: CI2
on: push

jobs:
  build_and_release2:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@5
        with:
          fetch-depth: 0

      - name: Set up Node.js
        uses: actions/setup-node@5
        with:
          node-version: 24

Expected behavior:
Running act -j build_and_release2 does not fail, and Node.js gets installed.

Actual behavior:
Running act -j build_and_release2 fails and does not get installed.

Logs:

time="2025-10-08T13:27:12+02:00" level=info msg="Using docker host 'npipe:////./pipe/docker_engine', and daemon socket 'npipe:////./pipe/docker_engine'"
[CI2/build_and_release2] ⭐ Run Set up job
[CI2/build_and_release2] 🚀  Start image=catthehacker/ubuntu:act-latest
[CI2/build_and_release2]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[CI2/build_and_release2] using DockerAuthConfig authentication for docker pull
[CI2/build_and_release2]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI2/build_and_release2]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[CI2/build_and_release2]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[CI2/build_and_release2]   ✅  Success - Set up job
[CI2/build_and_release2]   ☁  git clone 'https://github.com/actions/setup-node' # ref=5
[CI2/build_and_release2] ⭐ Run Main Checkout
[CI2/build_and_release2]   🐳  docker cp src=D:\temp\nektos-act\. dst=/mnt/d/temp/nektos-act
[CI2/build_and_release2]   ✅  Success - Main Checkout [110.9068ms]
[CI2/build_and_release2] ⭐ Run Main Set up Node.js
[CI2/build_and_release2]   🐳  docker cp src=C:\Users\myUser\.cache\act/actions-setup-node@5/ dst=/var/run/act/actions/actions-setup-node@5/
[CI2/build_and_release2]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.8/x64/bin/node /var/run/act/actions/actions-setup-node@5/dist/index.js] user= workdir=
| version: 24
| Attempting to download 24...
[CI2/build_and_release2]   ❗  ::error::unable to get local issuer certificate
[CI2/build_and_release2]   ❌  Failure - Main Set up Node.js [3.3434202s]
[CI2/build_and_release2] exitcode '1': failure
[CI2/build_and_release2] ⭐ Run Complete job
[CI2/build_and_release2]   ✅  Success - Complete job
[CI2/build_and_release2] 🏁  Job failed
Error: Job 'build_and_release2' failed

Other information:
Docker Desktop is configured to run behind the corporate proxy:

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions