raven icon indicating copy to clipboard operation
raven copied to clipboard

Add option to scan a specific repo

Open elad-pticha opened this issue 2 years ago • 2 comments

For now, We support two options

  1. Scanning a specific organization
  2. Scanning the entire GitHub by star counts

We need an option to scan a specific repo in case organizations have a large number of repositories.

Let's take as an example the scan organization flow: image

We get all the repos in an organization and then send them to download_workflows_and_actions.

By implementing this issue, we can create a new function called: download_repo_workflows_and_actions that will get a single repo (or a list of repos) to be scanned.

elad-pticha avatar Oct 30 '23 16:10 elad-pticha

Big Like. Maybe it should be under the download org mode? You will pass --org-name and --repo-name

oreenlivnicode avatar Oct 31 '23 08:10 oreenlivnicode

Since the organization isn't strictly needed for a single repo I think implementing it as a separate mode is more straightforward from a usage perspective.

I have taken a stab at it and opened a PR as a starting point: https://github.com/CycodeLabs/raven/pull/118

anerdwithaknife avatar Nov 03 '23 11:11 anerdwithaknife