mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user