Skip to content

Commit

Permalink
ci: enable scheduled trivy scanner and report vulnerabilities as GH i…
Browse files Browse the repository at this point in the history
…ssues (#11)

* ci: enable scheduled trivy scanner and report vulnerabilities as GH issues

This workflow enables a scheduled scanner (that can also be run from a workflow dispatch) to
scan images using the trivy scanner. At the same time, enables the automatic creation/edition
of Github issues when a vulnerability is found.

Fixes #9
  • Loading branch information
DnPlas authored Oct 18, 2024
1 parent dd6888e commit 1f0e680
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/scan_images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Scan images

on:
schedule:
- cron: '00 23 * * *'
workflow_dispatch:

jobs:

scan-images:
name: Scan published images and report vulnerabilities
uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-published-images-scan-and-report.yaml@main
strategy:
matrix:
branch: [track/1.0]
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
with:
severity: "HIGH,CRITICAL"
branch: ${{ matrix.branch }}

0 comments on commit 1f0e680

Please sign in to comment.