mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
The bed_levelling/flow_cali/nozzle_offset_cali boolean->tristate migration builds two UPDATE statements with an f-string interpolating the column name. Bandit flags these as B608 (SQL injection) at medium severity, which failed the release-gate scan in test_security.sh. The interpolated _col only ever iterates the hardcoded _tristate_cols tuple, never user input, and SQL identifiers can't be passed as bound parameters. Suppress with `# nosec B608` (matching the existing settings.py convention) plus an inline rationale. No behavior change.