Skip to content

Commit

Permalink
Pass Infracost secret
Browse files Browse the repository at this point in the history
  • Loading branch information
ntse committed Nov 29, 2024
1 parent bb008e7 commit d17e299
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/_test-terraform-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
REPO_SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
AWS_ACCOUNT_ID: ${{ secrets.TEST_AWS_ACCOUNT_ID }}
AWS_ROLE_NAME: ${{ secrets.TEST_AWS_ROLE_NAME }}
TF_MODULES_SSH_DEPLOY_KEY: ${{ secrets.TF_MODULES_SSH_DEPLOY_KEY }}
TF_MODULES_SSH_DEPLOY_KEY: ${{ secrets.TF_MODULES_SSH_DEPLOY_KEY }}
INFRACOST_API_KEY: ${{ secrets.INFRACOST_API_KEY }}
2 changes: 2 additions & 0 deletions .github/workflows/docs/terraform-plan-apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ This workflow handles the deployment of Terraform stacks, with various checks an
`TF_MODULES_SSH_DEPLOY_KEY` (optional): SSH key for cloning Terraform modules.

`REPO_SSH_DEPLOY_KEY` (optional): SSH key for checking out private repositories.

`INFRACOST_API_KEY` (optional): The API key for generating Infracost reports.
3 changes: 3 additions & 0 deletions .github/workflows/terraform-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ on:
SSH_DEPLOY_KEY:
required: false
description: "Deprecated: Use either TF_MODULES_SSH_DEPLOY_KEY or REPO_SSH_DEPLOY_KEY instead."
INFRACOST_API_KEY:
required: false
description: "The API key for generating Infracost reports."

jobs:
define_matrix:
Expand Down

0 comments on commit d17e299

Please sign in to comment.