From 5bfd6d41b1075670fb07b2c45be0af7a5bebd73b Mon Sep 17 00:00:00 2001 From: agentfactory Date: Tue, 5 May 2026 01:50:59 +0000 Subject: [PATCH] fix: update nodesource_gpg_keyring test to match gpg --dearmor pattern Commit 53ca755 changed the NodeSource GPG key installation from dd to gpg --dearmor but didn't update the test assertion. Closes #1 Co-Authored-By: Claude Opus 4.6 --- internal/cmd/dockerfile_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/dockerfile_test.go b/internal/cmd/dockerfile_test.go index 0e67a3d..9beea45 100644 --- a/internal/cmd/dockerfile_test.go +++ b/internal/cmd/dockerfile_test.go @@ -45,8 +45,8 @@ func TestDockerfileSupplyChainInvariants(t *testing.T) { }) t.Run("nodesource_gpg_keyring", func(t *testing.T) { - if !strings.Contains(content, "dd of=/usr/share/keyrings/nodesource") { - t.Error("missing dd keyring pattern for NodeSource") + if !strings.Contains(content, "gpg --dearmor -o /usr/share/keyrings/nodesource") { + t.Error("missing gpg --dearmor keyring pattern for NodeSource") } if !strings.Contains(content, "signed-by=/usr/share/keyrings/nodesource") { t.Error("missing signed-by for NodeSource apt source")