From ca9be5fce7e34099cf48a1b9f25cd3d511dd39ac Mon Sep 17 00:00:00 2001 From: PastaClaw Date: Fri, 20 Feb 2026 17:51:51 -0600 Subject: [PATCH] ci: skip gRPC coverage PR comment on fork PRs Fork PRs don't have write permissions for the GITHUB_TOKEN, so the Comment PR step fails with 'Resource not accessible by integration'. Skip the comment step when the PR head repo differs from the base repo. The coverage report is still available as a build artifact. --- .github/workflows/tests-rs-sdk-grpc-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests-rs-sdk-grpc-coverage.yml b/.github/workflows/tests-rs-sdk-grpc-coverage.yml index ef33ae6a1a5..d89da6c422e 100644 --- a/.github/workflows/tests-rs-sdk-grpc-coverage.yml +++ b/.github/workflows/tests-rs-sdk-grpc-coverage.yml @@ -76,7 +76,7 @@ jobs: path: grpc-coverage-report.txt - name: Comment PR - if: github.event_name == 'pull_request' && (steps.coverage.outputs.cache_modified == 'true' || steps.coverage.outputs.status == 'failure') + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && (steps.coverage.outputs.cache_modified == 'true' || steps.coverage.outputs.status == 'failure') uses: actions/github-script@v7 with: script: |