Files
gosec/rules
Cosmin CojocarandClaude Opus 4.6 355cfa5a43 fix: reduce G117 false positives for custom marshalers and transformed values (#1614) (#1615)
G117 now skips findings when:
- The marshal call is inside a custom marshaler method (MarshalJSON, MarshalYAML, etc.)
- The type being marshaled implements a custom marshaler interface
- A composite literal wraps the sensitive field value in a function call (e.g. mask())

Also fixes the issue message to show the correct format name (JSON/YAML/XML/TOML)
instead of always saying "JSON key".

Closes #1614

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 08:56:12 +01:00
..