Skip to content

Commit d577f6c

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. Use CHATOPS_TOKEN instead, similar to the fix applied in tektoncd/pipeline. Fixes: Resource not accessible by integration (addComment) Signed-off-by: Vincent Demeester <[email protected]>
1 parent 57105ef commit d577f6c

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)