Origins from Packagist/Maven/... are not checked to be URLs
A package on Packagist has git@github.com/NickUseGitHub/NickClass
as its git repo, which Dulwich interprets as a filesystem path.
This means we are not validating URLs, and this could potentially be used to read arbitrary files from the worker's filesystem
Sentry issue: SWH-LOADER-GIT-1AD
Possible solutions:
- make listers like Packagist and Maven that accept arbitrary URLs check they are indeed URLs
- make all loaders make that check (but keep the CLI working with local paths)
- both
Migrated from T4670 (view on Phabricator)