Skip to content

Commit 557b1d2

Browse files
committed
style(auth): scope gcloud lint suppression
1 parent 0573169 commit 557b1d2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/cmd/auth_setup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,9 @@ func authSetupGcloudValue(ctx context.Context, key string) (string, error) {
286286
return value, nil
287287
}
288288

289+
//nolint:gosec // Fixed gcloud binary; arguments are validated or generated.
289290
func authSetupRunGcloud(ctx context.Context, args ...string) (string, error) {
290-
command := exec.CommandContext(ctx, authSetupGcloudBinary(), args...) //nolint:gosec // fixed gcloud binary; arguments are validated or generated
291+
command := exec.CommandContext(ctx, authSetupGcloudBinary(), args...)
291292
command.Env = append(os.Environ(), "CLOUDSDK_CORE_DISABLE_PROMPTS=1")
292293
output, err := command.CombinedOutput()
293294
if err != nil {

0 commit comments

Comments
 (0)