Skip to content

Commit

Permalink
ci: first trivy scan
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Dec 25, 2024
1 parent 01177c7 commit 4c584d7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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"

0 comments on commit 4c584d7

Please sign in to comment.