ci: run Trivy scans daily and other security checks weekly
This commit is contained in:
1 parent
08ec03b6ec
commit
7cea6ebb1e
1 file changed
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user