Skip to content

Commit 36e7524

Browse files
committed
Only run code coverage report on non-fork branches
Codacy's coverage report feature requires the use of a secret key, which is only available on the main repo and is not available on forks. So, the step has been always failing on any forks. This commit ensures that we only run it on non-forks. This greatly diminishes the value of the coverage reports. I've talked to one of the Codacy people and advised that they should just have an API key for coverage reports which is not a secret, like what bugsnag does.
1 parent 189f39d commit 36e7524

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
upload-coverage:
189189
# List all jobs that produce coverage files
190190
needs: [unit-tests, integration-tests]
191+
if: github.event.repository.fork == false
191192
runs-on: ubuntu-latest
192193
steps:
193194
- name: Checkout code

0 commit comments

Comments
 (0)