mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-04-30 06:37:29 +00:00
ci(github-action): 显性声明允许工作流写入仓库.
安全起见, 仓库将设置工作流的 Github Token 默认不可写, 因此需要在该工作流添加权限声明, 以支持其创建 Release.
This commit is contained in:
parent
e6b581b8cd
commit
d18c059498
3
.github/workflows/create-release.yml
vendored
3
.github/workflows/create-release.yml
vendored
@ -10,6 +10,9 @@ on:
|
|||||||
# 2. 创建 Release, 并标记为 Draft(草稿);
|
# 2. 创建 Release, 并标记为 Draft(草稿);
|
||||||
# 3. 上传 Application 发行包;
|
# 3. 上传 Application 发行包;
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user