Skip to content

Commit

Permalink
ci(github-action): 显性声明允许工作流写入仓库.
Browse files Browse the repository at this point in the history
安全起见, 仓库将设置工作流的 Github Token 默认不可写, 因此需要在该工作流添加权限声明, 以支持其创建 Release.
  • Loading branch information
LamGC committed Aug 23, 2022
1 parent e6b581b commit d18c059
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
# 2. 创建 Release, 并标记为 Draft(草稿);
# 3. 上传 Application 发行包;

permissions:
contents: write

jobs:
build:
timeout-minutes: 10
Expand Down

0 comments on commit d18c059

Please sign in to comment.