From 27bcafab5eec75921752102e7e9796555b628251 Mon Sep 17 00:00:00 2001
From: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
Date: Thu, 16 Jan 2025 00:05:02 +0100
Subject: [PATCH] [ci] Fix codecov action

Enables tokenless upload so that reports from forks work.
Also removed the secret from the repo. It's no longer needed nor working: https://github.com/testing-library/react-testing-library/actions/runs/12798352706/job/35682204149?pr=1354
---
 .github/workflows/validate.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index aa4eeed7..fe69085a 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -59,11 +59,10 @@ jobs:
         run: npm run validate
 
       - name: ⬆️ Upload coverage report
-        uses: codecov/codecov-action@v4
+        uses: codecov/codecov-action@v5
         with:
           fail_ci_if_error: true
           flags: ${{ matrix.react }}
-          token: ${{ secrets.CODECOV_TOKEN }}
 
   release:
     permissions: