Closed pascalberger closed 3 months ago
@lyndaidaii Could you please take a look into this PR?
@pascalberger, could you please provide one badge/image example with media.githubusercontent.com? we need go over some security perspective before allow this domain on NuGet.org.
Does your package on NuGet.org can't display image due to this domain? could you please also provide package link?
Thanks!
@lyndaidaii See https://github.com/swissgrc/Statiq.Alerts/blob/develop/README.md, which is a readme that is packaged into a NuGet package. It contains some images showcasing features of the package, which are stored in the same repository. Because the images are stored using Git LFS (to avoid bloating the repository) this won't work since LFS tracked files will get a different URL (media.githubusercontent.com
) than non LFS tracked files (raw.githubusercontent.com
)
Thank you for providing details. Verified on my end.
running NuGetGallery CI.
Allow LFS tracked images from GitHub repositories which are served on media.githubusercontent.com
Fixes https://github.com/NuGet/NuGetGallery/issues/9856