mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2026-06-01 22:10:44 +00:00
30 lines
777 B
YAML
30 lines
777 B
YAML
name: scan
|
|
|
|
on:
|
|
schedule:
|
|
# Scan the image regularly (once a day)
|
|
- cron: "45 03 * * *"
|
|
|
|
jobs:
|
|
build:
|
|
name: Scan current image & report results
|
|
runs-on: "ubuntu-24.04"
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Run Trivy vulnerability scanner
|
|
uses: aquasecurity/trivy-action@v0.36.0
|
|
with:
|
|
image-ref: "ghcr.io/${{ github.actor }}/nextcloud"
|
|
format: "template"
|
|
template: "@/contrib/sarif.tpl"
|
|
output: "trivy-results.sarif"
|
|
severity: "CRITICAL,HIGH"
|
|
vuln-type: "os"
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@v3
|
|
with:
|
|
sarif_file: "trivy-results.sarif"
|