Skip to content

Commit 9eb60c1

Browse files
Add permissions to sync-gitee workflow to fix security issue
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
1 parent a705318 commit 9eb60c1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sync-gitee.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
# 北京时间早上八点每天执行一次
1111
- cron: '0 0 * * *'
1212
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
1316

1417
jobs:
1518

0 commit comments

Comments
 (0)