We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3066b4 commit d479d28Copy full SHA for d479d28
.github/workflows/pipe_teste.yml
@@ -29,6 +29,17 @@ jobs:
29
push: false # apenas build local
30
tags: getting-started:latest
31
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
+
43
- name: Run container and test health
44
run: |
45
docker run -d -p 3000:3000 --name app getting-started
0 commit comments