fix: add explicit permissions blocks to workflows (CodeQL)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
parent
ef9812273f
commit
bff9144e9a
|
|
@ -8,6 +8,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'dev/DEV-*/**'
|
- 'dev/DEV-*/**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ===== Job 1: 解析 + 校验 =====
|
# ===== Job 1: 解析 + 校验 =====
|
||||||
parse-and-validate:
|
parse-and-validate:
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@ on:
|
||||||
- cron: '0 4,14 * * *'
|
- cron: '0 4,14 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue