Skip to content

Commit 6eaefc3

Browse files
committed
Remove build steps for images we no longer build
1 parent b489f05 commit 6eaefc3

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/trivy-scanning.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,8 @@ jobs:
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:
@@ -37,13 +23,3 @@ jobs:
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'

0 commit comments

Comments
 (0)