Skip to content

Commit 35aef9c

Browse files
use terraform letast version
1 parent afc916d commit 35aef9c

File tree

7 files changed

+37
-17
lines changed

7 files changed

+37
-17
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- name: tflint
5959
uses: reviewdog/action-tflint@master
6060
with:
61+
tflint_version: v0.29.0
6162
github_token: ${{ secrets.GITHUB }}
6263
working_directory: ${{ matrix.directory }}
6364
fail_on_error: 'true'

.github/workflows/tfsec.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,38 @@ on:
44

55
jobs:
66
tfsec:
7-
name: tfsec sarif report
7+
name: Terraform Security Scan
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- name: Clone repo
1212
uses: actions/checkout@master
1313

14-
- name: tfsec
14+
- name: tfsec Basic
1515
uses: aquasecurity/[email protected]
1616
with:
1717
sarif_file: tfsec.sarif
18-
working_directory: _example
18+
working_directory: ./_example/
1919
full_repo_scan: true
2020

2121
- name: Upload SARIF file
2222
uses: github/codeql-action/upload-sarif@v1
2323
with:
2424
# Path to SARIF file relative to the root of the repository
25-
sarif_file: tfsec.sarif
25+
sarif_file: tfsec.sarif
26+
27+
- name: tfsec commenter for PR
28+
uses: tfsec/tfsec-pr-commenter-action@main
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB}}
31+
working_directory: ./_example/
32+
33+
- name: 'Terraform security scan Advanced'
34+
uses: triat/[email protected]
35+
if: github.event_name == 'pull_request'
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB}}
38+
tfsec_actions_working_dir: ./_example/
39+
tfsec_actions_comment: true
40+
tfsec_output_format: sarif
41+
continue-on-error: true

README.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ usage : |-
4343
```hcl
4444
module "acm" {
4545
source = "clouddrove/acm/aws"
46-
version = "1.0.1"
46+
version = "1.3.0"
4747
name = "certificate"
4848
environment = "test"
4949
label_order = ["name","environment"]
@@ -58,7 +58,7 @@ usage : |-
5858
```hcl
5959
module "acm" {
6060
source = "clouddrove/acm/aws"
61-
version = "1.0.1"
61+
version = "1.3.0"
6262
name = "certificate"
6363
environment = "test"
6464
label_order = ["name","environment"]
@@ -73,7 +73,7 @@ usage : |-
7373
```hcl
7474
module "acm" {
7575
source = "clouddrove/acm/aws"
76-
version = "1.0.1"
76+
version = "1.3.0"
7777
name = "certificate"
7878
environment = "test"
7979
label_order = ["name","environment"]
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Terraform version
22
terraform {
3-
required_version = ">= 0.14.11"
3+
required_version = ">= 1.3.6"
4+
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = ">= 3.1.15"
8+
version = ">= 4.48.0"
89
}
910
}
10-
}
11+
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Terraform version
22
terraform {
3-
required_version = ">= 0.14.11"
3+
required_version = ">= 1.3.6"
4+
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = ">= 3.1.15"
8+
version = ">= 4.48.0"
89
}
910
}
10-
}
11+
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Terraform version
22
terraform {
3-
required_version = ">= 0.14.11"
3+
required_version = ">= 1.3.6"
4+
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = ">= 3.1.15"
8+
version = ">= 4.48.0"
89
}
910
}
10-
}
11+
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# convention.
99
module "labels" {
1010
source = "clouddrove/labels/aws"
11-
version = "0.15.0"
11+
version = "1.3.0"
1212

1313
name = var.name
1414
environment = var.environment

0 commit comments

Comments
 (0)