From 36e7524146e5f2ec5f36846e9019c3918e309995 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 19 May 2024 14:05:30 +1000 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f225ccfa..23599bbaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,6 +188,7 @@ jobs: upload-coverage: # List all jobs that produce coverage files needs: [unit-tests, integration-tests] + if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - name: Checkout code