mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
* Create .trivyignore Adding original trivy ignore file. Working to resolve/document more of the findings, especially around go.mod. Will add a github action as well. * Adding default trivy scan for testing * Update trivy_scan.yml Making it manual + daily for now * Update trivy_scan.yml updating name * Renamed + configured Trivy scan
29 lines
840 B
YAML
29 lines
840 B
YAML
name: Trivy vulnerability scan
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 4 * * *' # Nightly 4AM UTC
|
|
jobs:
|
|
build:
|
|
name: Trivy
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run Trivy vulnerability scanner in repo mode
|
|
uses: aquasecurity/trivy-action@master
|
|
with:
|
|
scan-type: 'fs'
|
|
ignore-unfixed: true
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
severity: 'CRITICAL'
|
|
skip-dirs: 'website/,tools/,infrastructure/,test/,orbit/pkg/insecure/'
|
|
trivyignores: '.trivyignore'
|
|
security-checks: 'vuln'
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
with:
|
|
sarif_file: 'trivy-results.sarif'
|