File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3636 GITHUB :
3737 required : true
3838 description : ' PAT of the user to run the jobs.'
39+ TF_API_TOKEN :
40+ required : false
41+ description : ' Terraform cloud token if your backend is terraform cloud.'
3942jobs :
4043 terraform-plan :
4144 name : ' Terraform Plan'
8689 tf_actions_working_dir : ${{ inputs.working_directory }}
8790 env :
8891 GITHUB_TOKEN : ' ${{ secrets.GITHUB }}'
92+ TF_CLI_ARGS : " -backend-config=token=${{ secrets.TF_API_TOKEN }}"
8993
9094 # Generates an execution plan for Terraform
9195 # An exit code of 0 indicated no changes, 1 a terraform failure, 2 there are pending changes.
@@ -223,4 +227,4 @@ jobs:
223227 - name : Error on Failure
224228 if : steps.tf-plan.outputs.exitcode == 2
225229 run : exit 1
226-
230+
You can’t perform that action at this time.
0 commit comments