Skip to content

Commit

Permalink
chore: Swapped tfsec for Trivy (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehipwell authored and Godji Fortil committed Oct 19, 2023
1 parent 7679ecf commit 445aabe
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
secrets: inherit
with:
module_name: terraform-azurerm-aks
tfsec: false
trivy: true
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
secrets: inherit
with:
module_name: terraform-azurerm-aks
tfsec: false
trivy: true
2 changes: 2 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ jobs:
secrets: inherit
with:
module_name: terraform-azurerm-aks
tfsec: false
trivy: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ terraform.rc

# Ignore DS Store files
.DS_Store

# Ignore reports
trivy-report.json
4 changes: 4 additions & 0 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
misconfigurations:
- id: AVD-KSV-0116
statement: This is caused by a Trivy defect.
expired_at: 2023-10-01
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@
"./"
],
"problemMatcher": []
},
{
"label": "trivy",
"type": "shell",
"command": "trivy",
"args": [
"config",
"--config",
"./trivy.yaml",
"--format",
"table",
"./"
],
"problemMatcher": []
}
]
}
5 changes: 5 additions & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ignorefile: ./.trivyignore.yaml

scan:
skip-dirs:
- ./examples

0 comments on commit 445aabe

Please sign in to comment.