From 4fb1cf823eeb026f6da554da0b75b11204baae3f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 9 Mar 2026 03:16:36 +0000 Subject: [PATCH] style(auth): normalize auth token export nosec marker --- internal/cmd/auth_tokens.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmd/auth_tokens.go b/internal/cmd/auth_tokens.go index 3911751..dd34987 100644 --- a/internal/cmd/auth_tokens.go +++ b/internal/cmd/auth_tokens.go @@ -129,7 +129,8 @@ func (c *AuthTokensExportCmd) Run(ctx context.Context, _ *RootFlags) error { return err } - if mkErr := os.MkdirAll(filepath.Dir(outPath), 0o700); mkErr != nil { //nolint:gosec // user-provided destination directory + // #nosec G301 -- destination directory is explicitly chosen by the caller. + if mkErr := os.MkdirAll(filepath.Dir(outPath), 0o700); mkErr != nil { return mkErr }