actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.37k stars 1.16k forks source link

Warning: Failed to restore: downloadCache failed: unable to verify the first certificate #1286

Open agepalmist opened 7 months ago

agepalmist commented 7 months ago

Dear team, I apologise if I'm in the wrong place. Couldn't find any relevant link. Trying to use actions/cache@3 or actions/cache/restore@v3 got this message: image

The cache was saved with a separate workflow and on the place. image

GitHub Enterprise Server 3.8.8

Runs-on: self-hosted

Might it be a runner settings issue related? Could you please give me a hint on how to resolve this? Thanks in advance. Regards, Denis.

poiupoiu17990 commented 7 months ago

: cleanup caches by a branch on: pull_request: types:

jobs: cleanup: runs-on: ubuntu-latest steps:

poiupoiu17990 commented 7 months ago

: cleanup caches by a branch on: pull_request: types:

jobs: cleanup: runs-on: ubuntu-latest steps:

agepalmist commented 7 months ago

Hello @poiupoiu17990 as far as I understood this extension doesn't allow to use of a cache, only to list or delete. The question was how to use it.

BTW, for a GHES it requires GH_ENTERPRISE_TOKEN and GH_HOST definition instead of GH_TOKEN.

 env:
   GH_ENTERPRISE_TOKEN: ${{ github.token }}
   GH_HOST: 'git.custom-host.com'
 run: |
   gh extension install https://github.com/actions/gh-actions-cache
   gh actions-cache list 
attzonko commented 4 months ago

@agepalmist Did you ever find a solution?

mgehre-amd commented 4 months ago

Setting the environment variable NODE_EXTRA_CA_CERTS to /etc/ssl/certs/ca-certificates.crt (ubuntu) solved the issue for me.

agepalmist commented 1 month ago

@agepalmist Did you ever find a solution?

was done by the GH runners management team, the cache wasn't provided deliberately in my case :)