Skip to content

Merge pull request #6 from ArturMarekNowak/develop #2

Merge pull request #6 from ArturMarekNowak/develop

Merge pull request #6 from ArturMarekNowak/develop #2

Workflow file for this run

name: Trivy and Dockle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag cqrs
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'cqrs'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
- name: Run dockle security diagnosis
uses: hands-lab/dockle-action@v1
with:
image: cqrs