diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4eacec7..62c44a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,9 @@ jobs: run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' coverage test coverageReport - name: Codecov - uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 - name: Make target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') diff --git a/build.sbt b/build.sbt index f5c82bd..59303c6 100644 --- a/build.sbt +++ b/build.sbt @@ -42,8 +42,9 @@ ThisBuild / githubWorkflowBuild ++= Seq( cond = Some(s"matrix.scala != '3'") ), WorkflowStep.Use( - ref = UseRef.Public("codecov", "codecov-action", "v3"), - name = Some("Codecov") + ref = UseRef.Public("codecov", "codecov-action", "v4"), + name = Some("Codecov"), + env = Map("CODECOV_TOKEN" -> "${{ secrets.CODECOV_TOKEN }}") ) ) ThisBuild / mergifyPrRules := {