File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change 1212 - name : Checkout code
1313 uses : actions/checkout@v2
1414
15- - name : Build images for nginx, web and db
16- run : |
17- docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-nginx:${{ github.sha }} nginx/
18- docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-web:${{ github.sha }} tomcat/
19- docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-db:${{ github.sha }} postgres/
20-
21- - name : Run Trivy vulnerability scanner on nginx
22- uses : aquasecurity/trivy-action@master
23- with :
24- image-ref : ' docker.io/xnat-docker-compose/xnat_docker_compose_xnat-nginx:${{ github.sha }}'
25- format : ' table'
26- exit-code : ' 1'
27- ignore-unfixed : true
28- vuln-type : ' os,library'
29- severity : ' CRITICAL,HIGH'
30- continue-on-error : true
15+ - name : Build web image
16+ run : docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-web:${{ github.sha }} xnat/
3117 - name : Run Trivy vulnerability scanner on web
3218 uses : aquasecurity/trivy-action@master
3319 with :
3723 ignore-unfixed : true
3824 vuln-type : ' os,library'
3925 severity : ' CRITICAL,HIGH'
40- continue-on-error : true
41- - name : Run Trivy vulnerability scanner on postgres
42- uses : aquasecurity/trivy-action@master
43- with :
44- image-ref : ' docker.io/xnat-docker-compose/xnat_docker_compose_xnat-db:${{ github.sha }}'
45- format : ' table'
46- exit-code : ' 1'
47- ignore-unfixed : true
48- vuln-type : ' os,library'
49- severity : ' CRITICAL,HIGH'
You can’t perform that action at this time.
0 commit comments