Skip to content

ci: rename job

ci: rename job #2

Workflow file for this run

name: Build and Scan Docker image
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/[email protected]
with:
image-ref: "trivy-explorer"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH"