fix(ci): grant migration-lock pull-requests read on GITHUB_TOKEN
Checkout fixed the missing .git, but `gh pr list` then failed with "GraphQL: Resource not accessible by integration (repository.pullRequests)" — the default token needs an explicit permission grant.
This commit is contained in:
parent
5b4ab9c020
commit
76a03fac91
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci-pr.yml
vendored
4
.github/workflows/ci-pr.yml
vendored
|
|
@ -87,6 +87,10 @@ jobs:
|
|||
# chain; the second PR must wait or rebase.
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
# gh pr list against the default GITHUB_TOKEN.
|
||||
contents: read
|
||||
pull-requests: read
|
||||
steps:
|
||||
# gh expands --json files via git, so it needs the repo checked out.
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue