rcurlgithub-actionsjagsrjags

curl under Windows Server 2022 uses UNIX certificate store when called in GitHub action


I am using a GitHub Action in order to check an R package's functionality. In order to install a background dependeny (JAGS), I am using curl.exe:

      - name: Install jags (Windows)
        if: runner.os == 'Windows'
        run: |
          curl.exe --ca-native -o wjags.exe --url https://deac-fra.dl.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.3.1.exe
          wjags.exe /S
          del wjags.exe
        shell: cmd

If I run the call to curl.exe on my local machine (Windows 11), I can download the file using curl without a problem, but on GitHub's Windows Server 2022, I get the following error:

curl: (77) error setting certificate file: /usr/ssl/certs/ca-bundle.crt operable program or batch file.

This appears to be a UNIX file path to a certificate store. This surprises me as curl.exe is called under Windows, explicitly using the --ca-native option. How do I fix this problem?


Solution

  • When the question was posted in February 2024, the problem was tested on multiple GitHub repositories. In March 2024, we could no longer reproduce it. The underlying issue has apparently been fixed.