style(auth): normalize auth token export nosec marker

This commit is contained in:
Peter Steinberger 2026-03-09 03:16:36 +00:00
parent 521b4d45a5
commit 4fb1cf823e

View File

@ -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
}