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

@@ -65,7 +65,7 @@ func (r *Reader) Read(node *Node) (*ast.TaskRC, error) {
}
// Read the file
b, err := os.ReadFile(node.entrypoint)
b, err := os.ReadFile(node.entrypoint) //nolint:gosec
if err != nil {
return nil, err
}