29 lines
980 B
YAML
29 lines
980 B
YAML
name: Security Scan (SIAX Cloud)
|
|
|
|
# Advisory security scanning on every push/PR + weekly re-run, matching the
|
|
# fleet convention (--exit-code 0 so findings never block merges; they are
|
|
# triaged via the repo's security channel and BACKLOG).
|
|
#
|
|
# NOTE: findings on services/scrapers/* (FlareSolverr/Tor/curl_cffi) are
|
|
# expected and documented as a deliberate user decision -- see
|
|
# docs/compliance/GOLDEN-STANDARD-REPORT.md control C6.
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 5 * * 1" # weekly Monday re-scan
|
|
|
|
jobs:
|
|
security:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Trivy
|
|
run: |
|
|
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
|
- name: Trivy fs scan (vuln + secrets, advisory)
|
|
run: |
|
|
trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 0 .
|