Skip to content

Commit d479d28

Browse files
committed
add trivy
1 parent f3066b4 commit d479d28

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pipe_teste.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ jobs:
2929
push: false # apenas build local
3030
tags: getting-started:latest
3131

32+
# 🧰 Trivy roda logo após o build
33+
- name: Run Trivy scan before push
34+
uses: aquasecurity/trivy-action@0.28.0
35+
with:
36+
image-ref: getting-started:latest
37+
format: 'table'
38+
vuln-type: 'os,library'
39+
severity: 'CRITICAL,HIGH'
40+
ignore-unfixed: true
41+
exit-code: '1' # falha se encontrar vulnerabilidades críticas
42+
3243
- name: Run container and test health
3344
run: |
3445
docker run -d -p 3000:3000 --name app getting-started

0 commit comments

Comments
 (0)