From 4d43054bebbb4d9af37401d4388ae370dc359921 Mon Sep 17 00:00:00 2001 From: Radu Date: Thu, 5 Nov 2026 20:01:18 +0200 Subject: [PATCH] fix: skip coverage PR comment for fork pull requests GitHub gives pull_request workflows from forks a read-only GITHUB_TOKEN, regardless of the permissions the workflow requests. The comment step then fails with "Resource not accessible by integration", which fails the coverage job even though coverage was generated. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/master-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master-push.yaml b/.github/workflows/master-push.yaml index b128659..4364a8c 100644 --- a/.github/workflows/master-push.yaml +++ b/.github/workflows/master-push.yaml @@ -92,7 +92,7 @@ jobs: retention-days: 14 - name: Report coverage on PR - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository uses: romeovs/lcov-reporter-action@v0.4.0 with: lcov-file: lcov.info