ci: Fix push permissions for cherry-pick workflow (#60673)

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2026-07-09 13:34:57 +02:00 committed by GitHub
parent 9b4598f708
commit 55b776183d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -27,10 +27,6 @@ jobs:
run_cherry_pick:
runs-on: namespace-profile-2x4-ubuntu-2404
steps:
- name: steps::checkout_repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
with:
clean: false
- id: generate-token
name: steps::authenticate_as_zippy
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
@ -40,6 +36,11 @@ jobs:
permission-contents: write
permission-workflows: write
permission-pull-requests: write
- name: steps::checkout_repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
with:
clean: false
token: ${{ steps.generate-token.outputs.token }}
- name: cherry_pick::run_cherry_pick::cherry_pick
run: ./script/cherry-pick "$BRANCH" "$COMMIT" "$CHANNEL"
env:

View file

@ -59,8 +59,8 @@ fn run_cherry_pick(
named::job(
Job::default()
.runs_on(runners::LINUX_SMALL)
.add_step(steps::checkout_repo())
.add_step(authenticate)
.add_step(steps::checkout_repo().with_token(&token))
.add_step(cherry_pick(branch, commit, channel, &token)),
)
}