It is now possible to upload .svg files to comments in issues, PRs, discussions, and Markdown files, like READMEs. You just have to drag and drop the file in the text area.

An animation showing how to upload a SVG image to an issue comment.