.github/workflows: use CHATOPS_TOKEN for coverage comments#9198
.github/workflows: use CHATOPS_TOKEN for coverage comments#9198tekton-robot merged 1 commit intotektoncd:mainfrom
Conversation
The default GITHUB_TOKEN has restricted permissions on fork PRs and cannot post comments even with pull-requests: write permission. This causes the coverage workflow to fail with "Resource not accessible by integration" when trying to comment on PRs from forks. Use CHATOPS_TOKEN instead, following the same pattern used in slash.yml for fork PR interactions. Fixes the error: GraphQL: Resource not accessible by integration (addComment) Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
|
@vdemeester: GitHub didn't allow me to request PR reviews from the following users: AlanGreene. Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
/e2e-extras |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli, twoGiants The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
The default GITHUB_TOKEN has restricted permissions on fork PRs and cannot post comments even with pull-requests: write permission. This causes the coverage workflow to fail with "Resource not accessible by integration" when trying to comment on PRs from forks.
Use CHATOPS_TOKEN instead, following the same pattern used in slash.yml for fork PR interactions.
Fixes the error: GraphQL: Resource not accessible by integration (addComment)
/cc @AlanGreene @afrittoli
/kind misc
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes