Skip to content

Commit f0630b2

Browse files
committed
ci(pipeline.yml): #106 enable trivy iac scan for dockerfile,helm and kubernetes
1 parent 69b3ba7 commit f0630b2

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/pipeline.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
109109
with:
110110
args: --severity-threshold=high
111-
sast-dockerfile-trivy-hadolint:
111+
sast-iac-trivy-hadolint:
112112
runs-on: ubuntu-latest
113113
needs: build
114114
steps:
@@ -123,7 +123,6 @@ jobs:
123123
scan-type: config
124124
scan-ref: './'
125125
exit-code: 1
126-
severity: 'CRITICAL,HIGH'
127126
trivy-config: ./config/trivy/trivy.yaml
128127
docker-build-push:
129128
if: github.ref == 'refs/heads/main'
@@ -133,7 +132,7 @@ jobs:
133132
- mutation-test
134133
- dependency-vulnerability-analysis
135134
- sast-code-snyk
136-
- sast-dockerfile-trivy-hadolint
135+
- sast-iac-trivy-hadolint
137136
steps:
138137
- uses: actions/checkout@v4
139138
with:

config/trivy/trivy.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
misconfiguration:
22
scanners:
3-
- dockerfile
3+
- dockerfile
4+
- helm
5+
- kubernetes
6+
7+
severity:
8+
- UNKNOWN
9+
- LOW
10+
- MEDIUM
11+
- HIGH
12+
- CRITICAL

0 commit comments

Comments
 (0)