From 12df940a1367899d0a7c30a36caf6b353b9c95f9 Mon Sep 17 00:00:00 2001 From: Raphael Simon Date: Wed, 27 Sep 2023 21:20:17 -0700 Subject: [PATCH] Deep source pr fix (#3370) * Make DeepSource action work for all PRs Use a workflow_run action so that it can access the secret required to upload to Deep Source. * Run build on pull requests only Now that PRs are required for merging to v3 * Fix up how test coverage is uploaded --- .github/workflows/build.yml | 2 +- .github/workflows/deep-source.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3e18281c9..0238d8e34f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,8 @@ jobs: - name: Build run: make ci - name: Upload test coverage for deep source + if: matrix.go == '1.21' && matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v3 with: name: coverage path: cover.out - diff --git a/.github/workflows/deep-source.yml b/.github/workflows/deep-source.yml index d158d99471..137d23b9d7 100644 --- a/.github/workflows/deep-source.yml +++ b/.github/workflows/deep-source.yml @@ -1,4 +1,4 @@ -name: deepsource +name: deep-source on: workflow_run: workflows: [build] @@ -12,8 +12,7 @@ jobs: - name: Download test coverage uses: actions/download-artifact@v3 with: - name: coverage - path: cover.out + path: ./ - name: Report analysis to DeepSource run: | curl https://deepsource.io/cli | sh