From 480f757c8d96f5f80743f6f4bfcb3cdbda60f318 Mon Sep 17 00:00:00 2001 From: Raphael Simon Date: Thu, 21 Sep 2023 22:08:54 -0700 Subject: [PATCH] Only push code coverage on push as the action running for pull requests does not have access to the DeepSource DSN. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 048b4afcb4..8b975b012d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: env: GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }} - name: Report test-coverage to DeepSource - if: ${{ matrix.os == 'ubuntu-latest' }} + if: github.event_name == 'push' && matrix.os == 'ubuntu-latest' run: | curl https://deepsource.io/cli | sh ./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out