diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ac8fa6421..922223f30 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -110,6 +110,8 @@ jobs: lint: uses: ./.github/workflows/reusable-linters.yml + secrets: + codecov-token: ${{ secrets.CODECOV_TOKEN }} build-wheels-for-tested-arches: name: Build wheels on ${{ matrix.os }} diff --git a/.github/workflows/reusable-linters.yml b/.github/workflows/reusable-linters.yml index 229df79de..0c4095220 100644 --- a/.github/workflows/reusable-linters.yml +++ b/.github/workflows/reusable-linters.yml @@ -4,6 +4,10 @@ name: Linters on: workflow_call: + secrets: + codecov-token: + description: Mandatory token for uploading to Codecov + required: true env: COLOR: >- # Supposedly, pytest or coveragepy use this @@ -59,7 +63,7 @@ jobs: - name: Send coverage data to Codecov uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.codecov-token }} files: >- .tox/.tmp/.mypy/python-3.13/cobertura.xml, .tox/.tmp/.mypy/python-3.11/cobertura.xml,