This project creates a repos.json
that can be utilized by the SAP InnerSource Portal. The current approach assumes that the repos that you want to show in the portal are available in a GitHub organization, and that they all are tagged with a certain topic.
pip install -r requirements.txt
- Copy
.env-example
to.env
- Fill out the
.env
file with a token from a user that has access to the organization to scan (listed below). Tokens should have admin:org or read:org access. - Fill out the
.env
file with the exact topic name you are searching for - Fill out the
.env
file with the exact organization that you want to search in - Run
python3 ./crawler.py
, which will create arepos.json
file containing the relevant metadata for the GitHub repos for the given topic - Copy
repos.json
to your instance of the SAP-InnerSource-Portal and launch the portal as outlined in their installation instructions