Skip to content

Commit

Permalink
fix: remove terraform cloud env vars from terraform workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane committed Apr 28, 2023
1 parent 751f36f commit 16a798a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/terraform-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ on:
required: true
TF_API_TOKEN:
required: false
TF_ORG:
required: false
TF_WORKSPACE:
required: false

permissions:
contents: read
Expand All @@ -64,8 +60,6 @@ env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_VAR_terraform_organization: ${{ secrets.TF_ORG }}
TF_VAR_terraform_workspace: ${{ secrets.TF_WORKSPACE }}

jobs:
terraform:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/terraform-newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ on:
required: true
TF_API_TOKEN:
required: false
TF_ORG:
required: false
TF_WORKSPACE:
required: false

permissions:
contents: read
Expand All @@ -59,8 +55,6 @@ env:
NEW_RELIC_ACCOUNT_ID: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
NEW_RELIC_API_KEY: ${{ secrets.NEW_RELIC_API_KEY }}
NEW_RELIC_REGION: ${{ secrets.NEW_RELIC_REGION }}
TF_VAR_terraform_organization: ${{ secrets.TF_ORG }}
TF_VAR_terraform_workspace: ${{ secrets.TF_WORKSPACE }}

jobs:
terraform:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ on:
required: true
TF_API_TOKEN:
required: false
TF_ORG:
required: false
TF_WORKSPACE:
required: false

permissions:
contents: read
pull-requests: write

env:
TF_VAR_terraform_organization: ${{ secrets.TF_ORG }}
TF_VAR_terraform_workspace: ${{ secrets.TF_WORKSPACE }}
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
terraform:
Expand Down

0 comments on commit 16a798a

Please sign in to comment.