Skip to content

Commit 05e155a

Browse files
committed
grant permission
1 parent 466837c commit 05e155a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/on-issue.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
issues:
44
types: [opened, labeled]
55

6+
permissions:
7+
contents: write # 允许提交和推送到仓库
8+
issues: write # 允许创建评论和修改 issue
9+
610
jobs:
711
run:
812
name: Run Bot
@@ -23,5 +27,7 @@ jobs:
2327
run: bun run index.js
2428
env:
2529
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
31+
GITHUB_REPOSITORY: ${{ github.repository }}
2632
MIDDLE_CA_KEY: ${{ secrets.MIDDLE_CA_KEY }}
2733
MIDDLE_CA_CERT: ${{ secrets.MIDDLE_CA_CERT }}

0 commit comments

Comments
 (0)