diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6e896b6390085cbe7ade7c9c6b9dde61d2551616..3e7e018a88da00a818bb1ef72811c7f5171e119b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -438,7 +438,7 @@ jobs:
           merge-multiple: true
 
       - name: Codecov
-        uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
+        uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
         with:
           token: ${{ secrets.CODECOV_TOKEN }}
           directory: coverage/lcov