Skip to content

Adding CI Tests (#330) #2

Adding CI Tests (#330)

Adding CI Tests (#330) #2

Workflow file for this run

name: trivy-scanning
on:
push:
branches:
- main
pull_request:
jobs:
trivy-scanning-job:
name: trivy-sec-scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'HIGH,CRITICAL'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'