The Add Coverage PR Comment step (marocchino/sticky-pull-request-comment@v3)
in .github/workflows/build-and-test.yml fails the whole build whenever a PR comes from a
fork, because fork-triggered pull_request events get a read-only
GITHUB_TOKEN. The step errors with:
Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment
This takes down an otherwise-passing build (build, tests, format check and
coverage all succeed; only the PR-comment step fails).
The
Add Coverage PR Commentstep (marocchino/sticky-pull-request-comment@v3)in
.github/workflows/build-and-test.ymlfails the whole build whenever a PR comes from afork, because fork-triggered
pull_requestevents get a read-onlyGITHUB_TOKEN. The step errors with:This takes down an otherwise-passing build (build, tests, format check and
coverage all succeed; only the PR-comment step fails).