From d40ee936e8d0ed763045e90fdb1f40d9e45cee37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sumire=20=28=E8=8F=AB=29?= <151038614+sumire88@users.noreply.github.com> Date: Sat, 24 Aug 2024 08:47:09 -0400 Subject: [PATCH] ci(sync-changes-to-release-branch): use gh app creds (#52) --- .github/workflows/sync-changes-to-release-branch.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-changes-to-release-branch.yml b/.github/workflows/sync-changes-to-release-branch.yml index d2d38ba..a66151b 100644 --- a/.github/workflows/sync-changes-to-release-branch.yml +++ b/.github/workflows/sync-changes-to-release-branch.yml @@ -23,6 +23,14 @@ jobs: labels: branch/release fail-fast: false steps: + - name: Generate GitHub Auth Token + # https://github.com/tibdex/github-app-token + id: generate_token + uses: tibdex/github-app-token@v2.1.0 + with: + app_id: ${{ secrets.GH_APP_ID }} + private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} + - uses: actions/checkout@main with: ref: ${{ github.event.repository.default_branch }} @@ -38,4 +46,5 @@ jobs: team-reviewers: ${{ env.PR_TEAM_REVIEWERS }} title: '[cherry-pick] {old_title}' body: 'ci: cherry picking #{old_pull_request_id} onto ${{ matrix.branch }}' - + env: + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}