Skip to content

Action v5 considers the wrong commit sha #1651

Description

@kristof-mattei

https://github.com/kristof-mattei/logscreen/actions/runs/11849694531/job/33023836063#step:15:145

vs

https://github.com/kristof-mattei/logscreen/actions/runs/11849694531/job/33023837190#step:6:138

Notice that they're part of the same run (see URL).

The invocation is identical:

      - name: Upload coverage results (to Codecov.io)
        uses: codecov/codecov-action@968872560f81e7bdde9272853e65f2507c0eca7c # v5
        with:
          disable_search: true
          fail_ci_if_error: true
          files: reports/lcov.info
          flags: back-end
          plugins: noop
          token: ${{ secrets.CODECOV_TOKEN }}

and

      - name: Upload coverage results (to Codecov.io)
        uses: codecov/codecov-action@968872560f81e7bdde9272853e65f2507c0eca7c # v5
        with:
          disable_search: true
          fail_ci_if_error: true
          files: coverage/vitest/lcov.info
          flags: front-end
          plugins: noop
          token: ${{ secrets.CODECOV_TOKEN }}

I do not set the commit_parent or override_commit.

Yet in the first URL the upload results are uploaded to kristof-mattei/logscreen@cf4fa5e which is the hypothetical merge result, not the HEAD of my branch.

@codecov/report-upload

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: Report UploadIssues with pre-ingest report uploadingMediumMedium Priority Issues (to be fixed or re-evaluated in 3 monthsbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions