release-bump --date is documented but never validated #142
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: deep dive F15
Verdict: AGREE - low
Claim as reviewed
The CLI documents
--date <YYYY-MM-DD>butbumpaccepts any truthy string and inserts it directly into the changelog heading, so newlines or Markdown can corrupt the generated section.At HEAD
f354864(v3.3.0)cadence-core/bin/release-bump.mjs:102-const date = dateArg || new Date().toISOString().slice(0, 10);with no shape check. The value reaches the heading atcadence-core/bin/lib/release-decision.mjs:254-const heading = `## [${version}] - ${date}\n\n`;.Note
Local operator input only, so the exposure is a corrupted changelog rather than an injection. Reject anything that is not a round-tripping calendar date before any file is written.
Closed by v3.5.5 (ARG-02, verified against the shipped tree).