Skip to content

Document how to properly setup Codecov Github Action for OpenSource repositories #301

Open

Description

Describe the bug

PRs from external contributors fail CI.

The PR is happening in a forked repo. Using tokenless upload.
Tokenless has reached GitHub rate limit.

Environment (please complete the following information):

To Reproduce

Steps to reproduce the behavior:

  1. Go to an OpenSource project with CodeCov GitHub Action
  2. Open a PR as external contributor
  3. The CI will very likely fail (~10 CI failures, sometimes multiple in a row)

External contributors have a near 100% chance at failing. Internal contributors have a near 0% chance at failing.

Expected behavior

The CI is expected to work.
Or alternatively the guide describing how to setup the action should provide hints on how to deal with the error.

Screenshots

info - 2024-03-12 15:43:46,354 -- ci service found: github-actions
info - 2024-03-12 15:43:46,690 -- The PR is happening in a forked repo. Using tokenless upload.
info - 2024-03-12 15:43:47,076 -- Process Commit creating complete
error - 2024-03-12 15:43:47,076 -- Commit creating failed: {"detail":"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 1455 seconds."}
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/54bcd8715eee62d40e33596ef5e8f0f48dbbccab/dist/codecov' failed with exit code 1

Additional context

Created on request here:

Affected CI pipelines:

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

Metadata

Type

No type

Projects

  • Status

    Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions