This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 5f9f5247d6 NIFI-13210 Added CODECOV_TOKEN to GitHub Workflow
5f9f5247d6 is described below
commit 5f9f5247d6dbb8f2206f46e49cd5f5c7ff17af37
Author: exceptionfactory <[email protected]>
AuthorDate: Fri May 10 09:46:59 2024 -0500
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 <[email protected]>
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 0937a3a26e..83ad753baf 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: