Skip to content

Commit

Permalink
fix(): allow to set terraform version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdntgrn committed Jan 3, 2023
1 parent 3ea1ed1 commit 21e5297
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
7 changes: 6 additions & 1 deletion terraform-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ inputs:
description: "Path where to run terraform test"
required: false
default: dashboard
terraform_version:
description: "Terraform version used in this action"
required: false
default: 1.3.6

runs:
using: "composite"
steps:
Expand All @@ -41,7 +46,7 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.1
terraform_version: ${{ input.terraform_version }}

- name: Run Terraform Test
run: |
Expand Down
6 changes: 5 additions & 1 deletion terraform/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ inputs:
description: "Allows to enable plan result direct apply"
required: false
default: "false"
terraform_version:
description: "Terraform version used in this action"
required: false
default: 1.3.6

runs:
using: "composite"
Expand Down Expand Up @@ -78,7 +82,7 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.1
terraform_version: ${{ input.terraform_version }}

- name: Initialize Terraform
run: |
Expand Down
7 changes: 6 additions & 1 deletion tflint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ inputs:
repo-token:
description: "Path where will run checkov"
required: false
terraform_version:
description: "Terraform version used in this action"
required: false
default: 1.3.6

runs:
using: "composite"
steps:
Expand All @@ -44,7 +49,7 @@ runs:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.1
terraform_version: ${{ input.terraform_version }}

- name: Terraform init
run: |
Expand Down
4 changes: 2 additions & 2 deletions tfsec/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ runs:
- name: tfsec
uses: aquasecurity/tfsec-sarif-action@v0.1.4
with:
sarif_file: tfsec.sarif
sarif_file: tfsec.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: tfsec.sarif
sarif_file: tfsec.sarif

0 comments on commit 21e5297

Please sign in to comment.