mirror of
https://github.com/searxng/searxng.git
synced 2024-11-18 02:10:12 +01:00
b56db4e04e
Closes: https://github.com/searxng/searxng/issues/2777#issuecomment-1720958570 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
29 lines
749 B
YAML
29 lines
749 B
YAML
name: "Security checks"
|
|
on:
|
|
schedule:
|
|
- cron: "42 05 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
dockers:
|
|
name: Trivy ${{ matrix.image }}
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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'
|