Skip to content

Commit f4665ab

Browse files
vdemeestertekton-robot
authored andcommitted
.github/workflows: use CHATOPS_TOKEN for coverage comments
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>
1 parent 478d30f commit f4665ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/go-coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ jobs:
6161
uses: fgrosse/go-coverage-report@8c1d1a09864211d258937b1b1a5b849f7e4f2682 # v1.2.0
6262
continue-on-error: true # This may fail if artifact on main branch does not exist (first run or expired)
6363
with:
64+
token: ${{ secrets.CHATOPS_TOKEN }}
6465
coverage-artifact-name: "code-coverage"
6566
coverage-file-name: "coverage.txt"

0 commit comments

Comments
 (0)