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