From 614e1ab19d6366a50c35a065c3a5ec1978d2355c Mon Sep 17 00:00:00 2001
From: Umberto Baldi <u.baldi@arduino.cc>
Date: Mon, 4 Sep 2023 17:28:12 +0200
Subject: [PATCH] add token

---
 .github/workflows/test-go-task.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml
index 492511218..ecab724e6 100644
--- a/.github/workflows/test-go-task.yml
+++ b/.github/workflows/test-go-task.yml
@@ -105,6 +105,7 @@ jobs:
         if: runner.os == 'Linux'
         uses: codecov/codecov-action@v3
         with:
-          file: ${{ matrix.module.path }}coverage_unit.txt
+          token: ${{ secrets.CODECOV_TOKEN }}
+          files: ${{ matrix.module.path }}coverage_unit.txt
           flags: ${{ matrix.module.codecov-flags }}
           fail_ci_if_error: ${{ github.repository == 'arduino/arduino-create-agent' }}