Skip to content

Commit 4901897

Browse files
authored
[Hotfix] Rename resources from checkov from tfsec and remove empty step (#4)
* rename checkov jobs to tfsec * remove empty terraform plan step * docs: change example version
1 parent 79aeadb commit 4901897

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ jobs:
7070
id: validate
7171
run: ${{ inputs.tf_command_validate }}
7272
working-directory: ${{ inputs.command_wrk_dir }}
73-
74-
- name: Terraform plan
75-
id: plan
76-
run: ${{ inputs.tf_command_plan }}
77-
working-directory: ${{ inputs.command_wrk_dir }}
7873

79-
jobs_checkov:
74+
jobs_tfsec:
8075
needs: jobs_terraform
8176
name: Checkov workflow
8277
if: github.event_name == 'pull_request'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# terraform-default-workflow
2-
Terraform workflow to be reused in your project, with commom Terraform steps and static analysis with [checkov](https://github.com/bridgecrewio/checkov).
2+
Terraform workflow to be reused in your project, with commom Terraform steps and static analysis with [tfsec](https://github.com/aquasecurity/tfsec).
33

44
## Actions
55
* https://github.com/marketplace/actions/hashicorp-setup-terraform
@@ -19,10 +19,10 @@ A job triggered at all `push` events with the steps:
1919
* Run Terraform init
2020
* Run Terraform validate
2121

22-
### `jobs_checkov`
22+
### `jobs_tfsec`
2323
A job triggered at all `pull_request` events with the steps:
2424
* checkout the code
25-
* setup checkcov
25+
* setup tfsec
2626
* run checkcov static analysis
2727
* If a vulnerability is found, create a comment in PR
2828

@@ -51,7 +51,7 @@ Calling the workflow with all the default inputs:
5151
5252
jobs:
5353
my-terraform-workflow:
54-
uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v1
54+
uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v2
5555
secrets:
5656
token: ${{ secrets.GITHUB_TOKEN }}
5757
```
@@ -61,7 +61,7 @@ And with customized inputs:
6161
6262
jobs:
6363
my-terraform-workflow:
64-
uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v1
64+
uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v2
6565
with:
6666
command_wrk_dir: './infra-code-dir'
6767
secrets:

0 commit comments

Comments
 (0)