Skip to content

Commit

Permalink
Remove build steps for images we no longer build
Browse files Browse the repository at this point in the history
  • Loading branch information
johnflavin-fw committed Nov 4, 2022
1 parent b489f05 commit 6eaefc3
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/trivy-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Build images for nginx, web and db
run: |
docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-nginx:${{ github.sha }} nginx/
docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-web:${{ github.sha }} tomcat/
docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-db:${{ github.sha }} postgres/
- name: Run Trivy vulnerability scanner on nginx
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/xnat-docker-compose/xnat_docker_compose_xnat-nginx:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
continue-on-error: true
- name: Build web image
run: docker build -t docker.io/xnat-docker-compose/xnat_docker_compose_xnat-web:${{ github.sha }} xnat/
- name: Run Trivy vulnerability scanner on web
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -37,13 +23,3 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
continue-on-error: true
- name: Run Trivy vulnerability scanner on postgres
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/xnat-docker-compose/xnat_docker_compose_xnat-db:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

0 comments on commit 6eaefc3

Please sign in to comment.