chore: add nolint annotations for gosec linter

Add //nolint:gosec annotations for intentional code patterns
that are safe in context (path traversal in release tool,
uintptr conversion for terminals, weak rand in tests,
TLS skip verify for user-configured insecure mode).

Assisted-by: Kimi-K2.5 via Crush <crush@charm.land>
This commit is contained in:
Andrey Nering
2026-04-13 10:32:09 -03:00
parent b36fcfd8bb
commit 219bf3e5a5
5 changed files with 6 additions and 6 deletions

View File

@@ -1022,7 +1022,7 @@ func TestIncludesRemote(t *testing.T) {
for k, taskCall := range taskCalls {
t.Run(taskCall.Task, func(t *testing.T) {
expectedContent := fmt.Sprint(rand.Int64())
expectedContent := fmt.Sprint(rand.Int64()) //nolint:gosec
t.Setenv("CONTENT", expectedContent)
outputFile := fmt.Sprintf("%d.%d.txt", i, k)