From 5f9f5247d6dbb8f2206f46e49cd5f5c7ff17af37 Mon Sep 17 00:00:00 2001 From: exceptionfactory Date: Fri, 10 May 2024 09:46:59 -0500 Subject: [PATCH] NIFI-13210 Added CODECOV_TOKEN to GitHub Workflow - Set Codecov action to be conditional based on running in the context of the Apache organization Signed-off-by: Pierre Villard This closes #8808. --- .github/workflows/ci-workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 0937a3a26ebc..83ad753baf2e 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -187,8 +187,10 @@ jobs: ${{ env.MAVEN_PROJECTS }} - name: Codecov uses: codecov/codecov-action@v4 + if: github.repository_owner == 'apache' with: files: ./nifi-code-coverage/target/site/jacoco-aggregate/jacoco.xml + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload Test Reports uses: actions/upload-artifact@v4 with: