mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-27 23:15:51 +00:00
ci: add security-events write permission for CodeQL
This commit is contained in:
5
.github/workflows/security-scan.yml
vendored
5
.github/workflows/security-scan.yml
vendored
@@ -5,6 +5,11 @@ on:
|
||||
- cron: '0 2 * * *' # 每天 UTC 02:00(北京时间 10:00)
|
||||
workflow_dispatch: # 支持手动触发
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
security-scan:
|
||||
name: Security Scan (${{ matrix.branch }})
|
||||
|
||||
Reference in New Issue
Block a user