Skip to content

Commit

Permalink
Trivy scan docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Jul 16, 2024
1 parent 0135486 commit 2c6dc80
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Trivy

on:
push:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: 0 0 * * 0

permissions:
contents: write

jobs:
trivy:
runs-on: ubuntu-latest
steps:
- name: Scan image in a private registry and upload results to GitHub
uses: aquasecurity/[email protected]
with:
image-ref: ghcr.io/${{ github.repository }}:${{ github.ref_name == 'main' && 'latest' || github.sha }}
scan-type: image
format: github
output: dependency-results.sbom.json
github-pat: ${{ secrets.GITHUB_TOKEN }}
severity: CRITICAL
scanners: vuln

0 comments on commit 2c6dc80

Please sign in to comment.