Skip to content

Commit

Permalink
Create trivy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YamagutiSenior authored Oct 13, 2024
1 parent 34b6087 commit 9f920d0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: trivy
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: trivy
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build an image from Dockerfile
run: docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM'

0 comments on commit 9f920d0

Please sign in to comment.