Skip to content

fix(github): sanitize gist description and file bodies on read paths - #3043

Open
SashaMIT wants to merge 1 commit into
github:mainfrom
SashaMIT:fix/sanitize-gist-bodies
Open

fix(github): sanitize gist description and file bodies on read paths#3043
SashaMIT wants to merge 1 commit into
github:mainfrom
SashaMIT:fix/sanitize-gist-bodies

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Test plan

  • go test ./pkg/github/ -run 'TestSanitizeGist|Test_GetGist|Test_ListGists' -count=1
  • CI green on this PR

Tooling assist used for prep; commit authored/signed by me (no Cursor co-author trailer).

Made with Cursor

Sibling of github#3035/github#3039/github#3040: list_gists and get_gist still returned raw
user-authored gist text to the model. Apply sanitize.Sanitize to
description and file contents before marshal.

Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
@SashaMIT
SashaMIT requested a review from a team as a code owner August 8, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant