GH Actions: add new workflow to auto-update certificate bundle #669
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Certificate: add checksum file
Add the checksum file for the certificate bundle to the package to allow both users of the package as well as maintainers of the package, to verify the validity of the included certificate bundle.
This file should only ever be updated at the same time as the certificate bundle is being updated.
GH Actions: new workflow to automatically update certificate bundle
This adds a new workflow which will automatically check the cURL website for an update to the certificate bundle once a day and if an updated bundle is found, it will automatically create a pull request against the
develop
branch to update the bundle in the Requests package.The workflow will also update the certificate checksum file and verify the checksum of the downloaded certificate bundle.
Notes:
These recommended commands do a conditional download only when a file is changed and use an
etag*.txt
file to check whether the upstream file has changed.These
etag*.txt
files don't really need to be stored in the actual repo, so they have been added to the.gitignore
file.In the workflow, these
etag*.txt
files are stored to and restored from a workflow cache to allow for the conditional download.stable
ordevelop
branch.Note: as PRs which are opened from within a workflow do not trigger new workflows to be run (= default behaviour for GitHub Actions), the PR potentially created by this workflow will not trigger a recursive run of this workflow.
stable
/develop
, any PR which may be opened will be opened againstdevelop
.Fixes #635