From f41b7c6d9e29cafc2d1234d92489f497136c1de1 Mon Sep 17 00:00:00 2001
From: Brian Smith <112954497+brian-smith-tcril@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:54:33 -0400
Subject: [PATCH] build: update codecov action to v4 and use token (#3037)

---
 .github/workflows/ci.yml             | 4 +++-
 .github/workflows/manual-publish.yml | 4 +++-
 .github/workflows/release.yml        | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2cc594933e..c03fc42a0f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,4 +42,6 @@ jobs:
     - name: Build Docs
       run: npm run build-docs
     - name: Coverage
-      uses: codecov/codecov-action@v3
+      uses: codecov/codecov-action@v4
+      with:
+        token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml
index f2ae2adfea..9aa8b91278 100644
--- a/.github/workflows/manual-publish.yml
+++ b/.github/workflows/manual-publish.yml
@@ -26,7 +26,9 @@ jobs:
     - name: i18n_extract
       run: npm run i18n_extract
     - name: Coverage
-      uses: codecov/codecov-action@v2
+      uses: codecov/codecov-action@v4
+      with:
+        token: ${{ secrets.CODECOV_TOKEN }}
     - name: Build
       run: npm run build
     # NPM expects to be authenticated for publishing. This step will fail CI if NPM is not authenticated
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5226b7a72c..1390787c0c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,7 +28,9 @@ jobs:
     - name: Build Docs
       run: npm run build-docs
     - name: Coverage
-      uses: codecov/codecov-action@v3
+      uses: codecov/codecov-action@v4
+      with:
+        token: ${{ secrets.CODECOV_TOKEN }}
     - name: Release
       env:
         GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}