Skip to content

Commit

Permalink
ci: use app's token
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <[email protected]>
  • Loading branch information
smallkirby committed Jan 15, 2025
1 parent 02aef38 commit 6addc79
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cherry-pick-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 6addc79

Please sign in to comment.