unpinned actions errors fixed #3
Workflow file for this run
This file contains 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: 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}} |