security.yml 919 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. name: Security
  3. # yamllint disable-line rule:truthy
  4. on:
  5. workflow_dispatch:
  6. schedule:
  7. - cron: "42 05 * * *"
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref_name }}
  10. cancel-in-progress: false
  11. permissions:
  12. contents: read
  13. jobs:
  14. container:
  15. name: Container
  16. runs-on: ubuntu-24.04-arm
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v4
  20. with:
  21. persist-credentials: "false"
  22. - name: Run Trivy scanner
  23. uses: aquasecurity/trivy-action@0.30.0
  24. with:
  25. image-ref: "docker.io/searxng/searxng:latest"
  26. vuln-type: "os,library"
  27. severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"
  28. ignore-unfixed: "false"
  29. format: "sarif"
  30. output: "./trivy-results.sarif"
  31. - name: Upload SARIFs
  32. uses: github/codeql-action/upload-sarif@v3
  33. with:
  34. sarif_file: "./trivy-results.sarif"