Check for upcoming web certificate expiry #1047
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check for upcoming web certificate expiry | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 0 * * * | |
| permissions: | |
| contents: read | |
| issues: write | |
| env: | |
| NODE_VERSION: lts/* | |
| jobs: | |
| check-certificates: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout current repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Check web ceritificate expiry | |
| id: check_certificates | |
| run: node tools/check-certificates/check-certificates.mjs >> $GITHUB_OUTPUT | |
| - name: Create issue | |
| if: ${{ failure() }} | |
| uses: dblock/create-a-github-issue@v3 | |
| with: | |
| filename: .github/workflows/certificate-check-template.md | |
| search_existing: all | |
| update_existing: true | |
| env: | |
| ACTION_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CERT_EXPIRY: ${{ steps.check_certificates.outputs.earliestExpiry }} | |
| CERT_CHECKS: ${{ steps.check_certificates.outputs.certificates }} |