Files
trailofbits__skills/.github
kz-tob 65720f8db2 Update claude_review.sh to collapse findings and cover whole diff (#279)
* Update claude_review.sh to collapse findings and cover whole diff

* Fix whitespace-only line and typo in review prompt

Line 94 was a whitespace-only separator, which the trailing-whitespace
pre-commit hook rejects. Also fixes "cenario" -> "scenario".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Require &lt; escaping in review finding summary lines

The <summary> line is raw HTML, so GitHub's sanitizer deletes anything
that parses as an unknown tag. A finding about <plugin>:<agent> rendered
as ":" with no sign that text was dropped, and a quoted <!-- hid the rest
of the line. Backticks do not help: inline markdown is not processed in
<summary>.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Correct the summary escaping rule and extend it to the body

Three defects in the rule added by a0dd0f2:

- The body claim was wrong. A bare <plugin> is dropped from a finding
  body exactly as from a summary; only backticks make it safe.
- "every literal <" read as covering the template's own <b>/<code> tags,
  which render as visible tag text if escaped. Scoped to the finding's
  own words.
- & was uncovered, so a summary quoting an entity rendered it decoded.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-25 14:03:32 -04:00
..