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 9b9e4eb commit 8e78834Copy full SHA for 8e78834
.github/workflows/docker-app.yml
@@ -30,6 +30,17 @@ jobs:
30
push: false # apenas build local
31
tags: getting-started:latest
32
33
+ # 🧰 Trivy roda logo após o build
34
+ - name: Run Trivy scan before push
35
+ uses: aquasecurity/trivy-action@0.28.0
36
+ with:
37
+ image-ref: getting-started:latest
38
+ format: 'table'
39
+ vuln-type: 'os,library'
40
+ severity: 'CRITICAL,HIGH'
41
+ ignore-unfixed: true
42
+ exit-code: '1' # falha se encontrar vulnerabilidades críticas
43
+
44
- name: Run container and test health
45
run: |
46
docker run -d -p 3000:3000 --name app getting-started
0 commit comments