From 3abab3049b07de853472fdf13c234c4eec7666f9 Mon Sep 17 00:00:00 2001 From: Phavya Jayakumar Date: Tue, 16 Jun 2026 22:33:26 +0530 Subject: [PATCH] Wrap poetry command with curation post-failure run Mirrors the same WrapCmdWithCurationPostFailureRun pattern used for pnpm and yarn so curation policy failures trigger the post-failure run logic for Poetry commands. --- buildtools/cli.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildtools/cli.go b/buildtools/cli.go index 23094b2b0..e361fed96 100644 --- a/buildtools/cli.go +++ b/buildtools/cli.go @@ -361,7 +361,10 @@ func GetCommands() []cli.Command { SkipFlagParsing: true, BashComplete: corecommon.CreateBashCompletionFunc(), Category: buildToolsCategory, - Action: PoetryCmd, + Action: func(c *cli.Context) error { + cmdName, _ := getCommandName(c.Args()) + return securityCLI.WrapCmdWithCurationPostFailureRun(c, PoetryCmd, techutils.Poetry, cmdName) + }, }, { Name: "uv",