Skip to content

trivy-security

trivy-security #78

name: trivy-security
on:
workflow_dispatch:
schedule:
# run weekly on Mondays
- cron: "0 13 * * 1"
jobs:
scan:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
ignore-unfixed: true
image-ref: 'vinanrra/7dtd-server:latest'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'