ci: add security-events write permission for CodeQL

This commit is contained in:
hicccc77
2026-03-27 19:12:31 +08:00
parent b3758d2baf
commit 78cadfd352

View File

@@ -5,6 +5,11 @@ on:
- cron: '0 2 * * *' # 每天 UTC 02:00北京时间 10:00 - cron: '0 2 * * *' # 每天 UTC 02:00北京时间 10:00
workflow_dispatch: # 支持手动触发 workflow_dispatch: # 支持手动触发
permissions:
contents: read
security-events: write
actions: read
jobs: jobs:
security-scan: security-scan:
name: Security Scan (${{ matrix.branch }}) name: Security Scan (${{ matrix.branch }})