Closed elad-pticha closed 8 months ago
This solution allows users to scan different types of accounts without specifying if it is an organization or a user account. Requiring users to select the account type is unnecessary and will block us from scanning different versions in a single command.
I think this is the best solution as we don't care if we scan an organization or a user account as we want RAVEN to scan its repositories.
Command like this:
raven download account --token $GITHUB_TOKEN --account-name userAccount --account-name microsoft
This makes it as easy as possible to run RAVEN as you don't even have to check if a specific account is org
type or user
type, RAVEN just does this in the backend.
@oreenlivnicode WDYT?
I got it @elad-pticha. I saw that github themselves use the terminology account. So I am ok with it.
Changed
org
subcommand toaccount
. This feature allows us to determine if each account is auser
ororganization
and to scan its GitHub Actions.Now we iterate over each account:
and determine its type:
From there, we continue the same. This structure eliminates duplicate code and allows the user to scan in a single raven command for both organizations (like we had before) and user repositories.
Usage: