Skip to content

GPG public key import returns invalid OpenPGP data, blocking Codecov uploads #1955

Closed

Description

@altendky

Update / workaround: Credit to @omarluq for identifying a workaround in this comment.

Adding use_pypi: true to the codecov/codecov-action step bypasses the failing Keybase GPG key import path:

with:
  use_pypi: true

This worked around the upload failure in our workflows while preserving the existing OIDC configuration.


This appears related to #1940, but the current failure mode is specifically that the public key import step receives invalid/non-OpenPGP data, so the later signature check fails with No public key.

Failing run:
https://github.com/altendky/onshape-mcp/actions/runs/27067934154?pr=495

Context:

  • PR: Document external-data artifact download behavior altendky/onshape-mcp#495
  • Head SHA: 8c3c2d4ad70c5eff8698ae0f6f0f61b3d6d45e15
  • Branch: issue-488-external-data-downloads
  • Run created: 2026-06-06T16:40:23Z
  • Failures occurred around 2026-06-06T18:10Z to 18:11Z
  • Action: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354
  • Action release: v6.0.1, current latest
  • CLI version: v11.2.8, current latest
  • Wrapper: Wrapper-0.2.7

Impact:

  • All Codecov upload jobs failed or were cancelled after related matrix failures.
  • Rust coverage failed on Linux ARM, Linux Intel, macOS ARM; macOS Intel and Windows Intel were cancelled after failures.
  • npm coverage failed on Linux ARM, Linux Intel, macOS ARM, Windows Intel; macOS Intel was cancelled.
  • Build/test/pre-Codecov work passed.

Runner spread:

  • Failures were observed across multiple GitHub-hosted runner OSes and Azure regions.
  • Representative runner metadata includes Linux Intel in westus and Windows Intel in westus3.
  • This does not look isolated to one runner region or image.

Representative log lines:

==> Finishing downloading linux:latest
      Version: v11.2.8

gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> Verifying GPG signature integrity
 -> Downloading https://cli.codecov.io/latest/linux/codecov.SHA256SUM
 -> Downloading https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig

gpg: Signature made Tue Apr 21 19:28:03 2026 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...

Comparison:

Codecov status currently reports all systems operational, but there is another current/today report on #1940:
#1940 (comment)

Requested labels, if maintainers agree:

  • bug
  • uploader
  • Area: Report Upload
  • Eng Area: CLI: General

Runner version comparison:

  • I checked the failing run against several recent successful ci runs, including 27063549792, 27063203167, 27062791287, 27055730462, 27050142943, and 27049781728.
  • Current runner version was 2.334.0 for all checked successful and failing jobs.
  • Runner Image Provisioner was Hosted Compute Agent version 20260520.533 for all checked successful and failing jobs.
  • Codecov action version was 6.0.1 for all checked successful and failing jobs.
  • Per-OS image versions matched between successful and failing jobs.

Representative runner metadata:

Run Time Job Result Runner Image Image Version Region
27063549792 13:27Z npm Linux Intel success 2.334.0 ubuntu-24.04 20260525.161.1 westus3
27063203167 13:10Z npm Linux Intel success 2.334.0 ubuntu-24.04 20260525.161.1 eastus
27062791287 12:51Z npm Linux Intel success 2.334.0 ubuntu-24.04 20260525.161.1 westcentralus
27067934154 18:10Z npm Linux Intel failed 2.334.0 ubuntu-24.04 20260525.161.1 westus
27063549792 13:27Z npm Windows Intel success 2.334.0 windows-2025 20260525.149.1 westcentralus
27067934154 18:10Z npm Windows Intel failed 2.334.0 windows-2025 20260525.149.1 westus3
27063549792 13:27Z npm macOS ARM success 2.334.0 macos-15-arm64 20260527.0100.1 westus
27067934154 18:10Z npm macOS ARM failed 2.334.0 macos-15-arm64 20260527.0100.1 westus

That makes a GitHub runner version or runner image rollout unlikely as the trigger; the meaningful difference appears to be timing and the external Codecov key/signature fetch behavior.

Keybase key import evidence:

Credit to @omarluq for identifying the broken Keybase key URL in #1955 (comment).

The pinned action source imports the GPG key from Keybase here:

echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | \
gpg --no-default-keyring --import

echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | \
  gpg --no-default-keyring --import

I queried that URL directly:

$ curl -i -L --max-time 30 'https://keybase.io/codecovsecurity/pgp_keys.asc'
HTTP/2 404
date: Sat, 06 Jun 2026 18:55:53 GMT
content-type: text/plain; charset=utf-8
content-length: 32
cache-control: no-store

SELF-SIGNED PUBLIC KEY NOT FOUND

Because the action uses curl -s without --fail, the 404 response body is still piped into gpg. That explains the exact import failure in our logs:

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

The later signature verification then fails because the public key was never imported:

gpg: Signature made Tue Apr 21 19:28:03 2026 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Can't check signature: No public key
==> Could not verify signature. Please contact Codecov if problem continues

So the immediate failure mechanism appears to be the action CLI validation path depending on a Keybase public-key URL that is currently returning a 404 text body instead of OpenPGP key material.

Activity

  1. omarluq commented on Jun 6, 2026

    @omarluq
  2. omarluq commented on Jun 6, 2026

    @omarluq

    the action is importing the GPG key from a broken keybase url

    https://keybase.io/codecovsecurity/pgp_keys.asc -> 404 - SELF-SIGNED PUBLIC KEY NOT FOUND

    Was able to bypass the error by adding use_pypi to the job

    with:
      use_pypi: true 
  3. added a commit that references this issue on Jun 6, 2026
  4. added a commit that references this issue on Jun 6, 2026
  5. spomichter commented on Jun 6, 2026

    @spomichter

    This is my fix: dimensionalOS/dimos#2399

  6. added a commit that references this issue on Jun 6, 2026
  7. ReenigneArcher commented on Jun 6, 2026

    @ReenigneArcher
    Contributor

    Same, nothing reported on codecov status page.

  8. Nick2bad4u commented on Jun 6, 2026

    @Nick2bad4u

    Same issue here:
    https://github.com/Nick2bad4u/eslint-config-nick2bad4u/actions/runs/27073057085/job/79905583949
    and
    https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/actions/runs/27073029070/job/79905634104

    FYI: Codecov’s own action docs say that input uses the PyPI CLI instead of cli.codecov.io and bypasses integrity checking.

    So the workaround avoids the broken Keybase/GPG key import, but it also avoids the stronger signature check the normal action path was trying to perform. (not a huge deal tbh)

  9. added a commit that references this issue on Jun 6, 2026
  10. 14 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions