Skip to content

Commit 2471025

Browse files
author
Peter Steinberger
committed
style(auth): normalize auth token export nosec marker
1 parent 521b4d4 commit 2471025

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/cmd/auth_tokens.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ func (c *AuthTokensExportCmd) Run(ctx context.Context, _ *RootFlags) error {
129129
return err
130130
}
131131

132-
if mkErr := os.MkdirAll(filepath.Dir(outPath), 0o700); mkErr != nil { //nolint:gosec // user-provided destination directory
132+
// #nosec G301 -- destination directory is explicitly chosen by the caller.
133+
if mkErr := os.MkdirAll(filepath.Dir(outPath), 0o700); mkErr != nil {
133134
return mkErr
134135
}
135136

0 commit comments

Comments
 (0)