Browse Source

[ci]在工作流配置中添加 GITHUB_TOKEN 权限设置,以允许部署到 GitHub Pages。

dufu1991 1 year ago
parent
commit
3860680125
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/releases-stdf.yml

+ 6 - 0
.github/workflows/releases-stdf.yml

@@ -12,6 +12,12 @@ on:
     # 这个选项可以使你手动在 Action tab 页面触发工作流
     workflow_dispatch:
 
+# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。
+permissions:
+    contents: read
+    pages: write
+    id-token: write
+
 jobs:
     releases:
         runs-on: ubuntu-latest