Skip to content

updated workflows to trigger on push to main branch to avoid duplicate workflows for the same commit #79

updated workflows to trigger on push to main branch to avoid duplicate workflows for the same commit

updated workflows to trigger on push to main branch to avoid duplicate workflows for the same commit #79

Workflow file for this run

---
name: Trivy Security Check
on:
push:
branches:
- main
pull_request:
jobs:
trivy-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/[email protected]
with:
scan-type: "fs"
ignore-unfixed: true
exit-code: '1'
format: "sarif"
output: "trivy-results.sarif"
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: "trivy-results.sarif"