[BUG] Tokenless upload rejected for a public fork PR

未关闭
#1,978 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, python
领域
ci-cd, devops

调研方向

Start by comparing the failing codecov-action@v4 GitHub Actions job with the successful authenticated main run, then inspect how the action and CLI handle fork metadata and tokenless uploads. Reproduce against a public fork PR and determine whether the rejection comes from the client workflow or Codecov authentication or repository synchronization; done means the cause is established and a fix or actionable configuration guidance is verified.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

The Codecov upload for public fork PR #189 in jsoizo/kotlin-csv failed with:

HTTP 400: Token required - not valid tokenless upload

The original GitHub Actions job uses codecov/codecov-action@v4 and CLI
11.3.2. It detects the fork and supplies a colon-prefixed branch.
Authenticated main uploads succeed.

The cause is not established. An earlier version of this report emphasized
repository synchronization too strongly; that is only an unconfirmed
possibility based on similar reports.

Observed failure

PR: https://github.com/jsoizo/kotlin-csv/pull/189

Failing job:
https://github.com/jsoizo/kotlin-csv/actions/runs/41361427049/job/128587373730

Metadata in the original job:

  • Repository slug: jsoizo/kotlin-csv
  • Branch: Alox1d:bugfix/utf8-surrogate-pairs
  • Commit: d0029f4f349c2c00b0272e4a1a105da30a926179
  • Pull request: 189
  • Git service: github

Additional investigation and limits

Local CLI 11.3.2 replays with this metadata also returned HTTP 400 for
create-commit and upload-coverage. The latter used a real Kover report
generated from the exact commit after all 258 JVM tests passed.

These were local CLI runs, not a validation of the current v7 Action in a
GitHub fork PR. We have not established whether upgrading the Action fixes
the original workflow.

The Codecov public API reports private: false, active: true,
activated: true, and author jsoizo:

https://api.codecov.io/api/v2/github/jsoizo/repos/kotlin-csv/

Successful authenticated main run:
https://github.com/jsoizo/kotlin-csv/actions/runs/42434464353

The repository was previously doyaaaaaken/kotlin-csv, with GitHub repository
ID 200859123. We do not know whether the ownership change is relevant.

Expected behavior

Coverage uploads from public fork PRs succeed without exposing the upstream
repository token.

Environment

  • Git host: GitHub
  • CI: GitHub Actions
  • Original runner: Ubuntu 24.04
  • Action in the failing job: codecov/codecov-action@v4
  • CLI: 11.3.2

What would you recommend checking to distinguish a client/workflow issue
from a Codecov-side authentication or repository synchronization issue?

Repository tracking issue:
https://github.com/jsoizo/kotlin-csv/issues/193

主要语言
Python
星标
1.7k
派生
260
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codecov/codecov-action 的其他 Issue

查看 codecov/codecov-action 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。