mirror of
https://github.com/securego/gosec.git
synced 2026-06-20 00:15:59 +02:00
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>