Skip to content

CI: codecov-action v6 fails GPG verification — keybase.io key URL returns 404 #2398

Closed

Description

@spomichter

Symptom

Codecov upload steps hard-fail before uploading anything (e.g. this run):

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> Verifying GPG signature integrity
gpg: Signature made Thu May 29 21:23:36 2025 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Can't check signature: No public key
==> Could not verify signature. Please contact Codecov if problem continues
    Exiting...
Error: Process completed with exit code 1.

Since we set fail_ci_if_error: true, this fails the whole job.

Root cause

The codecov-action v6 wrapper (dist/codecov.sh line 113) imports the Codecov signing key like this:

echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | gpg --no-default-keyring --import
  • curl -s without --fail or retries: any non-200 response pipes an HTML error page into gpg → "no valid OpenPGP data found".
  • https://keybase.io/codecovsecurity/pgp_keys.asc currently returns 404 (verified 2026-06-06; the keybase profile page still exists but the raw key endpoint is gone). So this is not flaky right now — every upload fails until Codecov fixes their wrapper.

Upstream: codecov/codecov-action#1876 ("Random fails due to uploader verification key import failing"), open since April.

Proposed fix

Vendor the Codecov Uploader Verification Key (2703 4E7F DB85 0E0B BC2C 62FF 806B B28A ED77 9869, cross-checked against the copy Codecov vendors in their own test-results-action and the Ubuntu keyserver) into the repo and gpg --import it into the runner's default keyring before each codecov step. The wrapper's gpg --verify falls back to the default keyring, so verification then succeeds regardless of the keybase fetch — we keep full signature checking rather than disabling it. Verified end-to-end locally: gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <[email protected]>" against the current linux-arm64 CLI SHA256SUM.

PR incoming.

Activity

  1. spomichter commented on Jun 6, 2026

    @spomichter
    ContributorAuthor

    Dug into why the keybase URL 404s — it's not transient and not a rate limit:

    • The 404 body is SELF-SIGNED PUBLIC KEY NOT FOUND, deterministic across retries and user agents.
    • It's specific to the codecovsecurity account — other accounts' /pgp_keys.asc routes return 200.
    • The key itself is still in keybase's JSON API (/_/api/1.0/user/lookup.json?usernames=codecovsecurity returns the full bundle, same fingerprint), so the key wasn't revoked — the account's self-signed key is just no longer served on the web route the codecov wrapper hardcodes. Only Codecov (re-proving the key on keybase) or Keybase can fix that end.

    So no amount of retrying the wrapper helps; pre-seeding the key (#2399) is the right shape of workaround until codecov-action stops depending on keybase.

  2. bolorundurowb commented on Jun 6, 2026

    @bolorundurowb

    I am wondering whay the codecov status page did not indicate that there was an issue

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions