Search code examples
sslgithub-actionsgithub-actions-self-hosted-runners

Github actions, self hosted runner Error: unable to verify the first certificate


I am using self hosted runner behind a corporate proxy. I added our certificates but when doing :

  - name: Setup Java
    uses: actions/setup-java@v2
    with:
      distribution: 'adopt'
      java-package: jdk
      java-version: '11'

I am getting the error :

Error: unable to verify the first certificate

Any hint? Thank you


Solution

  • Adding env :

       env:
         - name: SSL_CERT_DIR
           value: "/etc/ssl/certs"
    

    In runner deployment fixed the issue.