Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize metadata links on all platforms #5739

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

jeffwidman
Copy link
Member

As pointed out in #5729, we should be using the "source" of the metadata for deciding how to sanitize, not the "place where Dependabot is hosted".

This hack was annoying the folks who use GitLab to the point that they monkey-patched this code to also run the sanitizer on GitLab, and then contributed that back in #3437.

If it's true on GitLab, it's even more true on other platforms as well for the reasons explained in #3437 (comment).

So remove this guard altogether.

@jeffwidman jeffwidman marked this pull request as ready for review September 17, 2022 07:47
@jeffwidman jeffwidman requested a review from a team as a code owner September 17, 2022 07:47
Copy link
Member

@Nishnha Nishnha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of wonder why we put up the guard in the first place?

Looks like it was added in #2539, specifically in 8fb45b2 where we switched out using source.provider for just source. 🤷🏾

Seems fine to remove the guard and just sanitize regardless, though.

As pointed out in #5729, we should be using the "source" of the metadata
for deciding how to sanitize, not the "place where Dependabot is hosted".

This hack was annoying the folks who use GitLab to the point that [they monkey-patched this code to also run the sanitizer on GitLab](#3437 (comment)), and then contributed that back in #3437.

If it's true on GitLab, it's even more true on other platforms as well for the reasons explained in #3437 (comment).

So remove this guard altogether.
@jeffwidman jeffwidman force-pushed the sanitize-metadata-links-on-all-platforms branch from bbdf7c7 to 9fd1c8d Compare September 21, 2022 03:59
@jeffwidman jeffwidman merged commit 6d1c083 into main Sep 21, 2022
@jeffwidman jeffwidman deleted the sanitize-metadata-links-on-all-platforms branch September 21, 2022 04:13
@pavera pavera mentioned this pull request Oct 31, 2022
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.

2 participants