Repository navigation
Check permissions when file creation is templated - #11
Conversation
dmillzilla-bot
left a comment
There was a problem hiding this comment.
Automated Codex review as dmillzilla-bot of 40bafe7.
Reviewed the complete four-file diff. Explicit nonempty unresolved create values now require a mode; absent defaults, literal booleans/null, supplied modes and module-over-task argument precedence are preserved. Templates are not evaluated, argument checking is unchanged, and no production interpreter or dependency was introduced. Standalone CLI regressions run with empty PATH. Local 205 Rust tests, strict Clippy, 21 distribution tests, notice verification, formatting and source/history secret scans pass. Reference policy fields agree in all 20 controls; the two raw invalid-boolean formatting differences remain recorded rather than counted as full matches.
No blocking findings in this scoped fix. Hosted CI must pass before merge; full parity and a release are not established by this approval.
lineinfileandblockinfilewithcreate: "{{ allow_create }}"could exit clean without an explicit file mode: the permission rule treated an unresolved expression as the module's defaultcreate: false.Require a mode for an explicit nonempty create value that cannot be reduced to a literal boolean. Preserve default behavior when create is absent, literal false/null handling, explicit modes and module-argument precedence over task-level args. No template evaluation or Python backend is introduced.
Validation: 205 Rust tests, strict Clippy, formatting, 21 distribution tests and 377-package notice verification pass. New standalone CLI regressions compare complete issue fields/exits with an empty PATH and cover both modules, task args, false/null values and explicit modes. Public pinned dependencies and synthetic fixtures reproduce the missing findings. All 20 differential controls agree on the permission finding; 18 also match complete CLI output. Two invalid-value controls retain an existing boolean-choice list ordering difference, independently reproduced with different Python hash seeds; argument checks remain enabled. Detailed comparison records stay private.
This prepares an unreleased 0.1.4 fix and does not claim full parity.