ci(github-action): 显性声明允许工作流写入仓库.

安全起见, 仓库将设置工作流的 Github Token 默认不可写, 因此需要在该工作流添加权限声明, 以支持其创建 Release.
This commit is contained in:
LamGC 2022-08-23 13:38:30 +08:00
parent e6b581b8cd
commit d18c059498
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -10,6 +10,9 @@ on:
# 2. 创建 Release, 并标记为 Draft(草稿);
# 3. 上传 Application 发行包;
permissions:
contents: write
jobs:
build:
timeout-minutes: 10