From 885f12e17dcfdaac50fdee91990b1aa3657918e6 Mon Sep 17 00:00:00 2001 From: Nicolas Ruflin Date: Thu, 30 Apr 2026 22:40:04 +0200 Subject: [PATCH] chore(ci): bump codecov-action from v2 to v5 `codecov/codecov-action@v2` is several majors behind the current v5.5.x line. Bump to v5 and align with the new input contract: - Pass `token` from the `CODECOV_TOKEN` secret. - Set `fail_ci_if_error: false` so a flaky upload does not block the build. - Conditionally enable `use_oidc` to work around the v5.4.1 regression that breaks OIDC token requests on fork pull requests. --- .github/workflows/continuous-integration.yaml | 9 +++++++-- CHANGELOG.md | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 5746081c0..b85ccf017 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -104,9 +104,14 @@ jobs: vendor/bin/phpunit --group functional --coverage-clover=build/coverage/functional-coverage.xml - name: 'Upload coverage to Codecov' - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 with: - files: build/coverage/unit-coverage.xml,build/coverage/functional-coverage.xml + files: build/coverage/unit-coverage.xml,build/coverage/functional-coverage.xml + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + # Tokenless uploads from forks are flaky in v5; only request OIDC + # when the workflow is running on the head repository. + use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} - name: Elasticsearch Logs if: always() diff --git a/CHANGELOG.md b/CHANGELOG.md index b4e7e1579..623afcc1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added support for "search after" based pagination [#1645](https://github.com/ruflin/Elastica/issues/1645) * Added support for the `seq_no_primary_term` search option and the `if_seq_no` / `if_primary_term` index options to enable optimistic concurrency control [#2284](https://github.com/ruflin/Elastica/pull/2284) ### Changed +* Bumped `codecov/codecov-action` from `v2` to `v5` and aligned it with the v5 input contract (`token`, `fail_ci_if_error: false`, conditional `use_oidc`). ### Deprecated ### Removed ### Fixed