Skip to content

Commit 9c1c0bc

Browse files
correct checkout (#2945)
1 parent 05263a1 commit 9c1c0bc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pr_precommit.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,19 @@ jobs:
6565
runs-on: ubuntu-24.04
6666

6767
steps:
68+
- name: Create app token
69+
uses: actions/create-github-app-token@v2
70+
id: app-token
71+
with:
72+
app-id: ${{ vars.PR_APP_ID }}
73+
private-key: ${{ secrets.PR_APP_KEY }}
74+
6875
- name: Checkout
6976
uses: actions/checkout@v4
77+
with:
78+
repository: ${{ github.event.pull_request.head.repo.full_name }}
79+
ref: ${{ github.head_ref }}
80+
token: ${{ steps.app-token.outputs.token }}
7081

7182
- name: Annotate locations with typos
7283
uses: codespell-project/codespell-problem-matcher@v1

0 commit comments

Comments
 (0)