From 88a57f9e0694bc31adcdc51fe441b9c4eafda50f Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Fri, 17 May 2024 12:25:14 -0700 Subject: [PATCH] Add Codecov Token to NPM Test Action (#68) # Add Codecov Token to NPM Test Action ## :gear: Release Notes - Add Codecov Token to NPM Test Action ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). --- .github/workflows/npm-test-and-coverage.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/npm-test-and-coverage.yml b/.github/workflows/npm-test-and-coverage.yml index c5d1f4c..be9241b 100644 --- a/.github/workflows/npm-test-and-coverage.yml +++ b/.github/workflows/npm-test-and-coverage.yml @@ -16,6 +16,10 @@ on: required: false type: string default: '18' + secrets: + token: + description: 'The CodeCov token used for private repositories' + required: false jobs: testandcoverage: @@ -35,3 +39,5 @@ jobs: run: npm test - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.token }}