added debug mod #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scan Docker Image CI Pipeline 1 | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- production | |
- staging | |
- dev | |
- uat | |
- feature/* | |
pull_request: | |
jobs: | |
trivyScanDockerImage: | |
name: trivy scan ( Docker Image security scanner ) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build an image from Dockerfile | |
run: | | |
docker build -t docker.io/joelwembo/prodxcloud-django-web:latest . | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@master | |
with: | |
image-ref: 'docker.io/joelwembo/prodxcloud-django-web:latest' | |
format: 'table' | |
# exit-code: '1' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |