From d18c059498bbe73802d9e5ef65aa99d7f143d912 Mon Sep 17 00:00:00 2001 From: LamGC Date: Tue, 23 Aug 2022 13:38:30 +0800 Subject: [PATCH] =?UTF-8?q?ci(github-action):=20=E6=98=BE=E6=80=A7?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E5=85=81=E8=AE=B8=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E5=86=99=E5=85=A5=E4=BB=93=E5=BA=93.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 安全起见, 仓库将设置工作流的 Github Token 默认不可写, 因此需要在该工作流添加权限声明, 以支持其创建 Release. --- .github/workflows/create-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 24abe3f..14deea3 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -10,6 +10,9 @@ on: # 2. 创建 Release, 并标记为 Draft(草稿); # 3. 上传 Application 发行包; +permissions: + contents: write + jobs: build: timeout-minutes: 10