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:
|
pull_request:
|
||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
schedule:
|
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'
|
- cron: '23 5 * * 1'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
secrets:
|
secrets:
|
||||||
name: Secrets (gitleaks)
|
name: Secrets (gitleaks)
|
||||||
|
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * 1'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -35,6 +38,7 @@ jobs:
|
|||||||
|
|
||||||
code:
|
code:
|
||||||
name: Code (Semgrep)
|
name: Code (Semgrep)
|
||||||
|
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * 1'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -55,6 +59,7 @@ jobs:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
name: Dependencies (Trivy)
|
name: Dependencies (Trivy)
|
||||||
|
if: github.event_name != 'schedule' || github.event.schedule == '23 5 * * *'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
Reference in new issue
Block a user