From 8fa4057d2196a73a49dd944156a4b78af6cf2fc2 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 31 Dec 2024 15:32:06 -0500 Subject: [PATCH 1/3] fix(ci): update `codecov-action` for tokenless uploads - per https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token, it seems a newer version is required now --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8fe8da..67af862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,4 +32,4 @@ jobs: - name: Test w/ coverage report run: npm run test:coverage - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 From 8b7a7830ea1618cbe1ab593bfa3e71aa6ace836c Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 31 Dec 2024 15:49:41 -0500 Subject: [PATCH 2/3] token is apparently needed for `main` and other "unprefixed" branches - c.f. https://docs.codecov.com/docs/codecov-tokens#tokenless-on-unprotected-branches --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67af862..9f03a45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,5 @@ jobs: run: npm run test:coverage - name: Upload coverage report to Codecov uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} From cf55fc4d5f137d462c11cbde91e86d730f4b8449 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 31 Dec 2024 15:53:43 -0500 Subject: [PATCH 3/3] remove token and change Codecov settings apparently according to https://docs.codecov.com/docs/codecov-tokens#enabling-tokenless-uploads-for-public-repositories, there is a setting to enable this, however the setting itself does not say "public repos only" confusingly.... --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f03a45..67af862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,5 +33,3 @@ jobs: run: npm run test:coverage - name: Upload coverage report to Codecov uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }}