From 656ef0d8c3887f9949d1563c7a8b83f0ee2c66af Mon Sep 17 00:00:00 2001 From: Isabella Basso Date: Wed, 26 Jun 2024 16:38:09 -0300 Subject: [PATCH] GHA: require codecov token explicitly --- .github/workflows/python-tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 895ea14d..91150471 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,5 +1,9 @@ name: Python workflows on: + workflow_call: + secrets: + codecov_token: + required: true push: branches: - "main" @@ -63,11 +67,10 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@v4.5.0 if: always() && matrix.session == 'tests' - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: coverage.xml fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload documentation if: matrix.session == 'docs-build' uses: actions/upload-artifact@v4