Repository navigation
ci: install codecov CLI from PyPI to dodge broken Keybase GPG import - #2997
Merged
Merged
Conversation
codecov/[email protected] downloads the Codecov CLI from cli.codecov.io and verifies its GPG signature against a public key fetched from https://keybase.io/codecovsecurity/pgp_keys.asc. That URL is currently returning 404 ("SELF-SIGNED PUBLIC KEY NOT FOUND"), so the key import yields "no valid OpenPGP data found", the keyring stays empty, and the signature check aborts with "Can't check signature: No public key" — failing the code-coverage job before any upload happens. Set use_pypi: true on both codecov-action steps so the CLI is installed from PyPI instead, bypassing the cli.codecov.io binary download and its broken Keybase key import. Tracked upstream in codecov/codecov-action#1955. This shape fired three times in ~24h (#2993, #2996, and run 27075953927), crossing the running-tend repeat-occurrence threshold from transient to durable. Co-Authored-By: Claude <[email protected]>
This was referenced Jun 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The non-required
code-coveragejob failed onmain(run 27075953927). All tests passed (1942 / 1238 / 703, 0 failed); the failure was in thecodecov/[email protected]upload step:Root cause (confirmed upstream). The action downloads the Codecov CLI from
cli.codecov.ioand verifies its GPG signature against a public key fetched fromhttps://keybase.io/codecovsecurity/pgp_keys.asc. That URL is currently returning404 SELF-SIGNED PUBLIC KEY NOT FOUND, so the key import produces "no valid OpenPGP data found", the keyring stays empty, and the signature check aborts with "No public key" — before any upload happens. Tracked in codecov/codecov-action#1955 (opened the same day) and the related #1876.Why a fix and not a rerun. This exact failure shape fired three times in ~24h — #2993, #2996, and this run. #2996's diagnosis explicitly flagged that a third occurrence should escalate to a durable mitigation, crossing the
running-tendrepeat-occurrence threshold from transient to durable.v6.0.1is already the latest action release, so bumping the pin doesn't help.Solution
Set
use_pypi: trueon bothcodecov-actionsteps inci.yaml(the test-results upload in thetestmatrix and the coverage upload incode-coverage). This is the workaround documented in #1955: it installs the Codecov CLI from PyPI instead ofcli.codecov.io, bypassing the binary download and its broken Keybase GPG-key import entirely. Both call sites are subject to the same failure mode, so both are patched.use_pypiis a documented input on[email protected](action.ymlline 155: "Use the pypi version of the CLI instead of from cli.codecov.io").Testing
YAML validated with
yaml.safe_load. Behavioral verification is thecode-coveragejob passing on this PR — it exercises the patched upload path. The maintainer can revertuse_pypi: trueonce Codecov restores the Keybase key (the# (codecov/codecov-action#1955)comments mark both sites).Automated fix for failed run