浏览代码

ci(sync): add push permission

Yorun 1 年之前
父节点
当前提交
82c025a34a
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      .github/workflows/sync.yml

+ 4 - 1
.github/workflows/sync.yml

@@ -1,5 +1,8 @@
 name: Upstream Sync
 
+permissions:
+  contents: write
+
 on:
   schedule:
     - cron: "0 */6 * * *" # every 6 hours
@@ -12,7 +15,7 @@ jobs:
     if: ${{ github.event.repository.fork }}
 
     steps:
-      # Step 1: run a standard checkout action, provided by github
+      # Step 1: run a standard checkout action
       - name: Checkout target repo
         uses: actions/checkout@v3