2022-08-31 18:38:59 +00:00
|
|
|
name: "Security checks"
|
2024-11-01 10:32:48 +00:00
|
|
|
on: # yamllint disable-line rule:truthy
|
2022-08-31 18:38:59 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "42 05 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dockers:
|
|
|
|
name: Trivy ${{ matrix.image }}
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-15 10:42:21 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-08-31 18:38:59 +00:00
|
|
|
|
|
|
|
- name: Run Trivy vulnerability scanner
|
|
|
|
uses: aquasecurity/trivy-action@master
|
|
|
|
with:
|
|
|
|
image-ref: 'searxng/searxng:latest'
|
|
|
|
ignore-unfixed: false
|
|
|
|
vuln-type: 'os,library'
|
|
|
|
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
|
|
|
|
format: 'sarif'
|
|
|
|
output: 'trivy-results.sarif'
|
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
|
|
with:
|
|
|
|
sarif_file: 'trivy-results.sarif'
|