Trivy ZenServer Scan #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Trivy ZenServer Scan | |
on: | |
push: | |
branches: [main] | |
schedule: | |
- cron: 0 4 * * 1 # At 04:00 on Monday | |
jobs: | |
trivy-scan: | |
name: Trivy ZenServer scan & analysis | |
if: github.repository == 'zenml-io/zenml' | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: zenserver-Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: docker.io/zenmldocker/zenml-server:latest | |
format: sarif | |
output: trivy-results-zenserver.sarif | |
- name: Upload Trivy zenserver scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: trivy-results-zenserver.sarif |