Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Yarn's GPG key (23E7166788B63E1E) expired in early 2024, causing apt-get operations to fail with EXPKEYSIG errors when the repository is present. This image uses npm/npx exclusively.

Changes

  • Added cleanup of Yarn repository files after Node.js installation:
    • Remove /etc/apt/sources.list.d/yarn.list
    • Remove /usr/share/keyrings/yarnkey.gpg
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
    apt-get install -y --no-install-recommends nodejs && \
    rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarnkey.gpg

The NodeSource setup script may add the Yarn repository. Removing these files immediately prevents subsequent apt operations from failing on the expired key.

Original prompt

on a different CI image I saw the following error. can you check if it is problematic for our image as well

Err:5 https://dl.yarnpkg.com/debian stable InRelease
The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging yarn@dan.cx
Get:9 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [13.6 kB]
Reading package lists...
W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging yarn@dan.cx
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits January 23, 2026 21:43
Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com>
Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com>
Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com>
Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate Yarn signature error in CI image Remove Yarn repository to prevent expired GPG key failures Jan 23, 2026
Copilot AI requested a review from mglaman January 23, 2026 21:46
@mglaman mglaman marked this pull request as ready for review January 23, 2026 22:00
@mglaman mglaman merged commit 65006e1 into main Jan 23, 2026
1 check passed
@mglaman mglaman deleted the copilot/check-yarn-signature-error branch January 23, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants