From f14a5697614cdb66ee1e7c3a23c5218d7eec1373 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Mon, 6 Jul 2026 11:05:07 -0700 Subject: [PATCH] handle expected ldd error in confirm-built-with-gofips140/task.sh Signed-off-by: Ryan Richard --- pipelines/shared-tasks/confirm-built-with-gofips140/task.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/shared-tasks/confirm-built-with-gofips140/task.sh b/pipelines/shared-tasks/confirm-built-with-gofips140/task.sh index e5d4252d8..572907001 100755 --- a/pipelines/shared-tasks/confirm-built-with-gofips140/task.sh +++ b/pipelines/shared-tasks/confirm-built-with-gofips140/task.sh @@ -37,7 +37,7 @@ if ! go version -m './image/rootfs/usr/local/bin/pinniped-concierge-kube-cert-ag fi # Check the ldd output to see whether we compiled a static executable or not. -pinniped_server_ldd="$(ldd './image/rootfs/usr/local/bin/pinniped-server' 2>&1)" +pinniped_server_ldd="$(ldd './image/rootfs/usr/local/bin/pinniped-server' 2>&1 || true)" # If it doesn't contain this line, that means the executable was dynamic, which we don't want. if [[ "$pinniped_server_ldd" != *"not a dynamic executable"* ]]; then echo "pinniped server binary is a dynamic executable." @@ -45,7 +45,7 @@ if [[ "$pinniped_server_ldd" != *"not a dynamic executable"* ]]; then fi # Check the ldd output to see whether we compiled a static executable or not. -kube_cert_agent_ldd="$(ldd './image/rootfs/usr/local/bin/pinniped-concierge-kube-cert-agent' 2>&1)" +kube_cert_agent_ldd="$(ldd './image/rootfs/usr/local/bin/pinniped-concierge-kube-cert-agent' 2>&1 || true)" # If it doesn't contain this line, that means the executable was dynamic, which we don't want. if [[ "$kube_cert_agent_ldd" != *"not a dynamic executable"* ]]; then echo "kube cert agent binary is a dynamic executable."