Skip to content

Commit

Permalink
Pass allowlist deploy key to destroy workflow (#141)
Browse files Browse the repository at this point in the history
So that it can initialise properly and destroy the temporary env

#patch
  • Loading branch information
gregtyler authored Mar 27, 2024
1 parent 8aad802 commit 58c2ca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/env-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: true
type: string
secrets:
allowlist_deploy_key:
description: "SSH Deploy Key"
required: true
aws_access_key_id:
description: "AWS Access Key ID"
required: true
Expand Down Expand Up @@ -35,6 +38,9 @@ jobs:
aws-region: eu-west-1
role-duration-seconds: 3600
role-session-name: OPGLpaStoreGithubAction
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.allowlist_deploy_key }}

- name: Lint Terraform
run: terraform fmt -check -recursive
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/workflow-pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ jobs:
with:
workspace_name: ${{ needs.generate-environment-workspace-name.outputs.environment_workspace_name }}
secrets:
allowlist_deploy_key: ${{ secrets.SSH_PRIVATE_KEY_ALLOW_LIST_REPOSITORY }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 58c2ca4

Please sign in to comment.