Skip to content

Commit

Permalink
add automatic cacert updater bot (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Aug 13, 2021
1 parent 2349d4e commit ee31697
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ca-cert-updater.yml
@@ -0,0 +1,27 @@
name: CA Certs Update
on:
workflow_dispatch:
schedule:
# https://crontab.guru/every-night-at-midnight
- cron: "0 0 * * *"

jobs:
update_ca_certs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Run updater
working-directory: ./security
run: "./mk-ca-bundle.pl"

- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "Update CA Certs"
path: "security/"
commit-message: "cacerts: pull in updated certs from Mozilla"
author: "eclipse-temurin-bot <temurin-bot@eclipse.org>"
4 changes: 2 additions & 2 deletions security/README.md
Expand Up @@ -37,9 +37,9 @@ The updated list will be picked up during the next build.

The resulting cacerts file is licensed under the terms of the [source file][mozilla-certdata], the Mozilla Public License, v.2.0.

## Future Work
## Updater

* Create a GitHub bot that checks whether `certdata.txt` needs updating and automatically creates a PR.
The `certdata.txt` is automatically updated as part of a GitHub actions workflow. See the [workflow file](./github/workflows/ca-cert-updater.yml).

[support-issues]: https://github.com/AdoptOpenJDK/openjdk-support/issues/13
[jdk-dev-thread]: https://mail.openjdk.java.net/pipermail/jdk-dev/2020-May/004305.html
Expand Down

0 comments on commit ee31697

Please sign in to comment.