Skip to content

Commit

Permalink
add cert manually
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand committed Jun 13, 2024
1 parent 1a7740b commit 4454dff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4454dff

Please sign in to comment.