Skip to content

Commit 95d0763

Browse files
macdeweeclaude
andcommitted
fix: suppress gosec G706 on dev-tool log line
DEV_OS/DEV_ARCH are trusted build-time env vars set by CI, not user input. Add nolint:gosec to match the fix already present on main. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0684f3a commit 95d0763

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dev-tools/mage/gotest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ func GoTest(ctx context.Context, params GoTestArgs) error {
408408
if raceAmd64 || raceArm64 {
409409
testArgs = append(testArgs, "-race")
410410
} else {
411+
//nolint:gosec // G706: DEV_OS/DEV_ARCH are trusted build-time env vars, not untrusted input
411412
log.Printf("Warning: skipping -race flag for unsupported platform %s/%s\n", devOS, devArch)
412413
}
413414
}

0 commit comments

Comments
 (0)