8000 Fix checking for new certs by ozh · Pull Request #3313 · YOURLS/YOURLS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix checking for new certs #3313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 4 additions & 23 deletions .github/workflows/update-certificates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ on:
# Run every Monday at 13:37
schedule:
- cron: '37 13 * * 1'
# Run on every push to `master`
push:
branches: [ master ]
# And whenever this workflow is updated or a PR attempts to update the certificate files.
pull_request:
paths:
- '.github/workflows/update-certificates.yml'
- 'includes/vendor/rmccue/requests/certificates/cacert.pem'
8000 - 'includes/vendor/rmccue/requests/certificates/cacert.pem.sha256'
# And manually
workflow_dispatch:

Expand All @@ -33,21 +24,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Restore etags cache for certificate files
uses: actions/cache@v3
with:
path: includes/vendor/rmccue/requests/certificates/etag-*.txt
key: curl-etag-${{ hashFiles('certificates/cacert.pem') }}-${{ hashFiles('certificates/cacert.pem.sha256') }}
restore-keys: |
curl-etag-

- name: Get current certificate bundle if changed
working-directory: ./includes/vendor/rmccue/requests/certificates
run: curl --etag-compare etag-cert.txt --etag-save etag-cert.txt --remote-name https://curl.se/ca/cacert.pem

- name: Get current SHA256 checksum file for the bundle if changed
- name: Get current certificate bundle
working-directory: ./includes/vendor/rmccue/requests/certificates
run: curl --etag-compare etag-sha.txt --etag-save etag-sha.txt --remote-name https://curl.se/ca/cacert.pem.sha256
run: |
curl --remote-name https://curl.se/ca/cacert.pem
curl --remote-name https://curl.se/ca/cacert.pem.sha256

- name: Verify the checksum of the downloaded bundle
working-directory: ./includes/vendor/rmccue/requests/certificates
Expand Down
0