Skip to content

ci: first trivy scan #1

ci: first trivy scan

ci: first trivy scan #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- trivy-scan-image
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build an image from Dockerfile
run: docker build -t trivy-explorer .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
with:
image-ref: "trivy-explorer"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH"