ci: run Trivy scans daily and other security checks weekly
Security / Secrets (gitleaks) (push) Successful in 1m12s
Security / Dependencies (Trivy) (push) Successful in 1m23s
Security / Code (Semgrep) (push) Successful in 2m15s

This commit is contained in:
Gabriel20xx committed 2026-11-15 19:12:45 +01:00
1 parent 08ec03b6ec
commit 7cea6ebb1e
1 file changed
+6 -1
+6 -1
View File
@@ -6,13 +6,16 @@ on:
pull_request:
branches: [main, master]
schedule:
# Weekly, so advisories published after the last push still get reported.
# Daily, for the Trivy job, so advisories published after the last push still get reported.
- cron: '23 5 * * *'
# Weekly, for the secrets and code jobs. Each job's if: condition picks the entry that runs it.
- cron: '23 5 * * 1'
workflow_dispatch: {}
jobs:
secrets:
name: Secrets (gitleaks)
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * 1'
runs-on: ubuntu-latest
permissions:
contents: read
@@ -35,6 +38,7 @@ jobs:
code:
name: Code (Semgrep)
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * 1'
runs-on: ubuntu-latest
permissions:
contents: read
@@ -55,6 +59,7 @@ jobs:
dependencies:
name: Dependencies (Trivy)
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * *'
runs-on: ubuntu-latest
permissions:
contents: read