Skip to content

Commit

Permalink
Merge pull request tenable#499 from dev-gaur/tf_v13_flag
Browse files Browse the repository at this point in the history
Add v13 flag option for terraform iac
  • Loading branch information
kanchwala-yusuf authored Jan 19, 2021
2 parents a3cee2d + 3f759b9 commit d301c3a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/iac-providers/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ import (

// terraform specific constants
const (
terraform supportedIacType = "terraform"
terraformV14 supportedIacVersion = "v14"
terraformV12 supportedIacVersion = "v12"

terraformDefaultVersion = terraformV12
terraform supportedIacType = "terraform"
terraformV12 supportedIacVersion = "v12"
terraformV13 supportedIacVersion = "v13"
terraformV14 supportedIacVersion = "v14"
terraformDefaultVersion = terraformV12
)

// register terraform as an IaC provider with terrascan
func init() {
// register iac provider
RegisterIacProvider(terraform, terraformV12, terraformDefaultVersion, reflect.TypeOf(tfv12.TfV12{}))
RegisterIacProvider(terraform, terraformV13, terraformDefaultVersion, reflect.TypeOf(tfv14.TfV14{}))
RegisterIacProvider(terraform, terraformV14, terraformDefaultVersion, reflect.TypeOf(tfv14.TfV14{}))
}

0 comments on commit d301c3a

Please sign in to comment.