Skip to content

Commit

Permalink
fix: hcp auth
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Aug 14, 2024
1 parent bdbe40f commit 02d78a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
required: false
default: '30m'
type: string
terraform_version:
description: 'Terraform version'
required: false
default: '1.9.0'
type: string
secrets:
TFE_TOKEN:
description: 'Terraform Cloud API Token'
Expand All @@ -34,6 +39,12 @@ jobs:
with:
path: ${{ inputs.sourceDir }}

- name: Setup HCP Terraform authentication
if: steps.detect.outputs.all_changed_files != '' || github.event_name == 'workflow_dispatch'
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ inputs.terraform_version }}
cli_config_credentials_token: ${{ secrets.TFE_TOKEN }}

- uses: actions/setup-go@v5
if: steps.detect.outputs.all_changed_files != '' || github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit 02d78a8

Please sign in to comment.