diff --git a/.github/workflows/infra-plan.yml b/.github/workflows/infra-plan.yml index 9544da1..183f193 100644 --- a/.github/workflows/infra-plan.yml +++ b/.github/workflows/infra-plan.yml @@ -11,7 +11,7 @@ on: env: TF_API_TOKEN: "${{ secrets.TERRAFORM_API_TOKEN }}" TF_CLOUD_ORGANIZATION: ${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }} - TF_VAR_organization: ${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }} + TF_VAR_organization: "${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }}" TF_WORKSPACE: 'snipcode-backend-compute-prod' jobs: @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Terraform - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.3.0 # Specify your Terraform version @@ -46,6 +46,8 @@ jobs: - name: Create Plan Run uses: hashicorp/tfc-workflows-github/actions/create-run@v1.0.0 id: plan-run + env: + TF_VAR_organization: "${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }}" with: workspace: ${{ env.TF_WORKSPACE }} configuration_version: ${{ steps.plan-upload.outputs.configuration_version_id }}