Skip to content

Commit 756bc23

Browse files
authored
[CI] Temporarily disable codecov comments if PR comes from fork repo (#493)
If PR comes from fork, it causes an error due to lack of permission to have write access to PR comments
1 parent 6946a7d commit 756bc23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ jobs:
396396
name: cov-report
397397
path: 'cov-report'
398398
- name: Comment coverage report link
399-
if: ${{ github.event_name == 'pull_request' }}
399+
# TODO: Support PRs from forks too
400+
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }}
400401
uses: peter-evans/create-or-update-comment@v4
401402
with:
402403
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)