ci: add security-events write permission for CodeQL
This commit is contained in:
1 parent
bb60694013
commit
da15f829d3
1 file changed
+5
@@ -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