From 4454dff3e0f8f75ee38e3eab8e7918d7b25e73a8 Mon Sep 17 00:00:00 2001 From: John Elizarraras Date: Thu, 13 Jun 2024 14:21:59 -0500 Subject: [PATCH] add cert manually --- .github/workflows/check-standard.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 9ed8628..2e048c9 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -29,10 +29,18 @@ jobs: R_KEEP_PKG_SOURCE: yes steps: - - name: Update cacerts + - name: Add custom certificate to trusted store if: matrix.config.os == 'ubuntu-latest' run: | - sudo apt update && sudo apt upgrade -y ca-certificates + # Download or access the certificate + echo "${{ secrets.WEBSITE_CERT }}" > website_cert.pem + + # Add the certificate to the system's trusted certificates + sudo cp website_cert.pem /usr/local/share/ca-certificates/website_cert.crt + sudo update-ca-certificates + + # Verify the certificate is trusted + openssl verify /usr/local/share/ca-certificates/website_cert.crt - uses: actions/checkout@v3