-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (37 loc) · 1.36 KB
/
job-certificate-expire-test-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Certificate Expiry Test Run
on:
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
email:
description: What is the email address of the recipient?
jobs:
certificate-expiry-check-test-run:
name: Run certificate expiry script in test mode
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: checkout repo content
uses: checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@486457dc46e82b9a740ca0ef1dac6a38a3fc272d # v4.0.2
with:
role-to-assume: ${{secrets.AWS_CERTIFICATE_EMAIL_ARN}}
aws-region: eu-west-2
- name: Python Setup
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.11'
- name: Install Pipenv
run: |
pip install pipenv
pipenv install
- run: pipenv run python3 -m bin.check_certificate_expiry --test agnieszka.bachleda@justice.gov.uk
env:
GANDI_CERTIFICATES_TOKEN: ${{ secrets.GANDI_CERTIFICATES_TOKEN }}
NOTIFY_PROD_API_KEY: ${{ secrets.NOTIFY_PROD_API_KEY }}
S3_CERT_BUCKET_NAME: ${{ secrets.S3_CERT_BUCKET_NAME }}
S3_CERT_OBJECT_NAME: ${{ secrets.S3_CERT_OBJECT_NAME}}