intrigueio / intrigue-core

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

Support GithubAccount entity names in two formats #442

Closed shpendk closed 2 years ago

shpendk commented 2 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.