Skip to content

Security Scan

Security Scan #101

name: Security Scan
on:
schedule:
- cron: 0 1 * * 6
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
security-scan:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # 0.24.0
env:
TRIVY_USERNAME: ${{ github.repository_owner }}
TRIVY_PASSWORD: ${{ github.token }}
with:
image-ref: ghcr.io/${{ github.repository }}:latest
ignore-unfixed: true
vuln-type: os
severity: CRITICAL,HIGH
format: sarif
output: trivy-results.sarif
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3
with:
sarif_file: trivy-results.sarif