intrigueio / intrigue-core

Discover Your Attack Surface!
https://core.intrigue.io
Other
1.36k stars 268 forks source link

Support GithubAccount entity names in two formats #442

Closed shpendk closed 3 years ago

shpendk commented 3 years ago

We recently decided that GithubAccount entities must be in the format: https://github.com/account_name_here. However, in platform we already have seeds that are GithubAccount entities in a format without the https://github.com prefix.

To solve this problem, I've used the entity transform_before_save functionality to prepend https://github.com if its not present. Additionally, this PR uses the GithubAccount enrichment functionality to check whether the account exists, and hides the entity if it does not exist.