Skip to content

CI: coverage PR comment step fails the build on fork PRs #53

Description

@kudima03

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions