Skip to content

Commit 509d337

Browse files
authored
Add missing GH_TOKEN to use gh cli (#1005)
1 parent c67da17 commit 509d337

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pre-commit-fix.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ jobs:
1111
github.event.issue.pull_request &&
1212
startsWith(github.event.comment.body, 'fix formatting')
1313
14+
permissions:
15+
contents: write
16+
pull-requests: read
17+
1418
steps:
1519
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # ratchet:actions/checkout@v6.0.0
1620

1721
# Action runs on the issue comment, so we don't get the PR by default.
1822
# Use the GitHub CLI to check out the PR.
1923
- name: Checkout Pull Request
24+
env:
25+
GH_TOKEN: ${{ github.token }}
2026
run: gh pr checkout ${{ github.event.issue.number }}
2127

2228
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # ratchet:actions/setup-python@v6.0.0

0 commit comments

Comments
 (0)