We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5009999 commit a7b64adCopy full SHA for a7b64ad
1 file changed
.github/workflows/maven.yml
@@ -45,6 +45,15 @@ jobs:
45
- name: Build Docker image
46
run: docker build -f dockerfile/Dockerfile -t my-app-image:${{ github.sha }} dockerfile/
47
48
+ - name: Scan Docker image with Trivy
49
+ uses: aquasecurity/trivy-action@v0.28.0
50
+ with:
51
+ image-ref: my-app-image:${{ github.sha }}
52
+ format: table
53
+ severity: CRITICAL,HIGH
54
+ exit-code: 1
55
+ vuln-type: os,library
56
+
57
- name: Run Docker container
58
run: |
59
# arranca en background y asigna nombre para poder pararlo después
0 commit comments