action-surefire-report icon indicating copy to clipboard operation
action-surefire-report copied to clipboard

Error: request to https://api.github.com/repos/xxx/check-runs failed, reason: tunneling socket could not be established, statusCode=407

Open liu-shaojun opened this issue 2 years ago • 1 comments

Hi experts, I'm running job in the self-hosted runners, when I use scacap/action-surefire-report@v1 to publish report, I always get the error Error: request to https://api.github.com/repos/intel-analytics/BigDL/check-runs failed, reason: tunneling socket could not be established, statusCode=407 https://github.com/intel-analytics/BigDL/runs/7790266534?check_suite_focus=true

    - name: Publish Test Report
      if: ${{ always() }}
      uses: scacap/action-surefire-report@v1
      with:
        check_name: Example mvn Report
        report_paths: scala/dllib/target/surefire-reports/*.xml

image

I tried to add env to set the proxy then I got Error: request to https://api.github.com/repos/intel-analytics/BigDL/check-runs failed, reason: connect ETIMEDOUT 140.82.114.6:443 https://github.com/intel-analytics/BigDL/runs/7836407257?check_suite_focus=true

    - name: Publish Test Report
      env:
        https_proxy: http://xxx.com:913
        http_proxy: http://xxx.com:913
        no_proxy: api.github.com
      if: ${{ always() }}
      uses: scacap/action-surefire-report@v1
      with:
        check_name: Example mvn Report
        github_token: ${{ secrets.GITHUB_TOKEN }}
        report_paths: scala/dllib/target/surefire-reports/TEST*.xml

image

Where could the problem be?

liu-shaojun avatar Aug 16 '22 01:08 liu-shaojun

@liu-shaojun did you managed to solve this?

dmitrijrub avatar Jan 17 '23 14:01 dmitrijrub