From 1b94534558eee3b080eb150c2200b1f684a277f8 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Tue, 21 Jul 2026 19:52:51 +0800 Subject: [PATCH] chore(github): run issue claims as dbx bot --- .github/workflows/issue-claim.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-claim.yml b/.github/workflows/issue-claim.yml index 6ba9c0e2a..19b029c9c 100644 --- a/.github/workflows/issue-claim.yml +++ b/.github/workflows/issue-claim.yml @@ -16,14 +16,23 @@ jobs: claim: runs-on: ubuntu-latest if: ${{ !github.event.issue.pull_request }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v5 + - name: Create DBX bot token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ vars.DBX_BOT_APP_ID }} + private-key: ${{ secrets.DBX_BOT_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: dbx + permission-issues: write + - name: Handle /claim command run: node .github/scripts/issue-claim.mjs env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} ISSUE_NUMBER: ${{ github.event.issue.number }} COMMENT_BODY: ${{ github.event.comment.body }} COMMENT_USER: ${{ github.event.comment.user.login }}