From 6addc79ee57164c466cb993381081b2248f1f0bc Mon Sep 17 00:00:00 2001 From: smallkirby Date: Thu, 16 Jan 2025 00:20:41 +0900 Subject: [PATCH] ci: use app's token Signed-off-by: smallkirby --- .github/workflows/cherry-pick-bot.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cherry-pick-bot.yml b/.github/workflows/cherry-pick-bot.yml index b472fe3..98c5cc6 100644 --- a/.github/workflows/cherry-pick-bot.yml +++ b/.github/workflows/cherry-pick-bot.yml @@ -11,6 +11,13 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app_id: ${{ vars.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Setup uv uses: astral-sh/setup-uv@v5 @@ -27,7 +34,7 @@ jobs: - name: Run Cherry Pick Script env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} PR_NUMBER: ${{ github.event.issue.number }} REPO: ${{ github.repository }} run: uv run .github/scripts/cherry-picker.py