Skip to content

Commit 111708d

Browse files
committed
fix(ci): only report coverage when it isn't coming from fork
Forks can't share their own secrets to upstream. Additionally, upstream isn't using its own secret when PR is coming from a fork. Skip this step in this case, instead of failing the PR. Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
1 parent 249583f commit 111708d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
path: build/coverage
7575

7676
- name: Report code coverage
77+
if: github.event.pull_request.head.repo.full_name == github.repository
7778
uses: marocchino/sticky-pull-request-comment@v3
7879
with:
7980
GITHUB_TOKEN: ${{ secrets.TOKEN_WRITE_PR }}

0 commit comments

Comments
 (0)