Skip to content

[BUG] Tokenless upload coverage failed #1793

@fredbi

Description

@fredbi

Describe the bug
Upload coverage failed in tokenless mode (global upload token not required).

To Reproduce
Steps to reproduce the behavior:

  • Set the owning organization with "global upload token" not required (github.com/go-openapi)
  • Pushed a PR to this public repo (github.com/go-openapi/strfmt) from a (public) fork
  • Upload coverage failed with:
Run codecov/codecov-action@v5
  with:
    files: ./coverage-ubuntu-latest.stable.out
    flags: stable
    os: ubuntu-latest
    fail_ci_if_error: false
    verbose: true
    disable_file_fixes: false
    disable_search: false
    disable_safe_directory: false
    disable_telem: false
    dry_run: false
    git_service: github
    gcov_executable: gcov
    handle_no_reports_found: false
    recurse_submodules: false
    run_command: upload-coverage
    skip_validation: false
    use_legacy_upload_endpoint: false
    use_oidc: false
    use_pypi: false
    version: latest
Run CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version)
==> Running Action version 5.4.0
....

```-> Token of length 0 detected
==> Running upload-coverage
      ./codecov --verbose upload-coverage --git-service github --sha b0787c91e0a29e76b421f7e98a1d0a10ad305d65 --branch fredbi:fix-141-NewDateTime --file ./coverage-ubuntu-latest.stable.out --flag stable --gcov-executable gcov
./codecov: line 1: syntax error near unexpected token `<'
./codecov: line 1: `<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: codecov-cli/latest/ubuntu-latest/codecov</Details></Error>'
==> Failed to run upload-coverage

Expected behavior
A clear and concise description of what you expected to happen.

I expected the coverage report to upload successfully from the public fork, without token.

Regression
State whether this is a regression and when the last successful instance occurred

N/A

Screenshots
If applicable, add screenshots to help explain your problem.

N/A

Product Area
If applicable, the product with the given bug (e.g. coverage, test analytics, browser extension, bundle analysis)

coverage

Versions

  • OS: ubuntu
  • Git Host: github
  • CI/CD: GitHub Actions, CircleCI]
  • Uploader: codecov-action@v5.4

Commit and CI link
Provide the commit SHA and CI link. If applicable, provide the entire Codecov output from CI.

Full details: https://github.com/go-openapi/strfmt/actions/runs/13843827907/job/38739641701

Additional context
Add any other context about the problem here.

N/A

Metadata

Metadata

Labels

LowLow Priority Issues (to be fixed or re-evaluated in 12 monthsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions