Integrate vet with GitHub Actions and Code Scanning for automated security alerts
vet
supports exporting policy violation reports as SARIF which can be uploaded to GitHub.
vet
has a dedicated GitHub Action for easy integration. This is the recommended approach for most teams.
.github/workflows/vet.yml
in your repository:
vet
CLI:
vet
will only include policy violations in the SARIF report. A policy must be provided using --filter
or --filter-suite
flag during scan.Policy Configuration
.github/vet/policy.yml
) to ensure consistent security standards across your organization.Branch Protection
Organization-wide Deployment
SARIF Upload Fails
security-events: write
permission is set in your workflow file and that Code Scanning is enabled for your repository.No Violations Reported
--report-json
locally to debug.