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

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

我在公司代理后面使用自托管运行器。我添加了我们的证书,但是在执行时:

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

我收到错误消息:

Error: unable to verify the first certificate

有什么提示吗? 谢谢

添加环境:

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

在 runner 部署中修复了这个问题。