security.yml 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. permissions:
  18. security-events: write
  19. steps:
  20. - name: Checkout
  21. uses: actions/checkout@v4
  22. with:
  23. persist-credentials: "false"
  24. - name: Run Trivy scanner
  25. uses: aquasecurity/trivy-action@0.30.0
  26. with:
  27. image-ref: "docker.io/searxng/searxng:latest"
  28. vuln-type: "os,library"
  29. severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"
  30. ignore-unfixed: "false"
  31. format: "sarif"
  32. output: "./trivy-results.sarif"
  33. - name: Upload SARIFs
  34. uses: github/codeql-action/upload-sarif@v3
  35. with:
  36. sarif_file: "./trivy-results.sarif"