From 0c67049297515b009ad79fab4e510a699740886b Mon Sep 17 00:00:00 2001 From: Sachin Sampras M Date: Mon, 20 Jul 2026 18:08:05 +0100 Subject: [PATCH] fix: add cgwName_os candidate to FindBinary for inconsistent archives Some CLI archives use binary names without the arch suffix: gitsign_cli_linux, rekor_cli_linux, fetch_tsa_certs_linux Add cgwName_os as a candidate pattern. All 8 CLIs verified against actual CDN archives from 1.4.1. Implements SECURESIGN-2158 Signed-off-by: Sachin Sampras M --- pkg/support/cgw.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/support/cgw.go b/pkg/support/cgw.go index 77c2720..5e13783 100644 --- a/pkg/support/cgw.go +++ b/pkg/support/cgw.go @@ -26,6 +26,7 @@ func FindBinary(dir, cliName, goos, goarch string) (string, error) { candidates := []string{ cliName, fmt.Sprintf("%s_%s_%s", cgwName, goos, goarch), + fmt.Sprintf("%s_%s", cgwName, goos), fmt.Sprintf("%s-%s-%s", cliName, goos, goarch), } if goos == "windows" {