All Projects β†’ zkoppert β†’ innersource-crawler

zkoppert / innersource-crawler

Licence: MIT license
This project creates a repos.json that can be utilized by the SAP InnerSource Portal.

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to innersource-crawler

gh-pages-action
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 26 (+8.33%)
Mutual labels:  actions
Actions Gh Pages
GitHub Actions for GitHub Pages πŸš€ Deploy static files and publish your site easily. Static-Site-Generators-friendly.
Stars: ✭ 2,576 (+10633.33%)
Mutual labels:  actions
gh-token
Create an installation access token for a GitHub app from your terminal πŸ’»
Stars: ✭ 154 (+541.67%)
Mutual labels:  actions
wp-documentor
Documentation Generator for WordPress.
Stars: ✭ 28 (+16.67%)
Mutual labels:  actions
Materialabout
It's a material-design about screen to use on your Android apps. A developer profile and application information easy to integrate. πŸ”–
Stars: ✭ 1,511 (+6195.83%)
Mutual labels:  actions
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+11933.33%)
Mutual labels:  actions
upx-action
Strips and runs upx on binaries
Stars: ✭ 17 (-29.17%)
Mutual labels:  actions
setup-lazarus
Set up your GitHub Actions workflow with a specific version of Lazarus
Stars: ✭ 29 (+20.83%)
Mutual labels:  actions
Actionsflow
The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions
Stars: ✭ 2,243 (+9245.83%)
Mutual labels:  actions
ghaction-dump-context
GitHub Action composite to dump context
Stars: ✭ 30 (+25%)
Mutual labels:  actions
Actions Openwrt
A template for building OpenWrt with GitHub Actions | 使用 GitHub Actions δΊ‘ηΌ–θ―‘ OpenWrt
Stars: ✭ 4,742 (+19658.33%)
Mutual labels:  actions
Super Linter
Combination of multiple linters to install as a GitHub Action
Stars: ✭ 7,445 (+30920.83%)
Mutual labels:  actions
k6-action
k6 is now available as a GitHub Action
Stars: ✭ 64 (+166.67%)
Mutual labels:  actions
serverless-actions
Serverless GitHub Actions
Stars: ✭ 112 (+366.67%)
Mutual labels:  actions
Localizr
Localizr is a Tool that handles and automates the generation of localization files for IOS and Android so there will be only one source of truth for all of your localization strings.
Stars: ✭ 33 (+37.5%)
Mutual labels:  actions
webpack-stats-diff-action
Github action to print Webpack stat diffs in your pull-requests.
Stars: ✭ 29 (+20.83%)
Mutual labels:  actions
Awesome Actions
A curated list of awesome actions to use on GitHub
Stars: ✭ 16,943 (+70495.83%)
Mutual labels:  actions
gh-actions-html-table-generator
Read from a json file and write to the README
Stars: ✭ 29 (+20.83%)
Mutual labels:  actions
pr-compliance-action
Check PR for compliance on title, linked issues, and files changed
Stars: ✭ 151 (+529.17%)
Mutual labels:  actions
action-my-broken-link-checker
A GitHub Action for checking broken links
Stars: ✭ 32 (+33.33%)
Mutual labels:  actions

InnerSource Crawler

.github/workflows/linter.yml CodeQL

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.

Support

If you need support using this project or have questions about it, please open up an issue in this repository. Requests made directly to GitHub staff or support team will be redirected here to open an issue. GitHub SLA's and support/services contracts do not apply to this repository.

Use as a GitHub Action

  1. Create a repository to host this GitHub Action or select an existing repository.
  2. Create the env values from the sample workflow below (GH_TOKEN, ORGANIZATION) with your information as repository secrets. More info on creating secrets can be found here. Note: Your GitHub token will need to have read/write access to all the repositories in the organization
  3. Copy the below example workflow to your repository and put it in the .github/workflows/ directory with the file extension .yml (ie. .github/workflows/crawler.yml)
  4. Don't forget to do something with the resulting repos.json file. You can move it to another repository if needed or save it as a build artifact. This will all depend on what you are doing with it and what repository you are running this action out of.

Example workflow

name: InnerSource repo crawler

on:
  workflow_dispatch:
  schedule:
    - cron: '00 5 * * *'

jobs:
  build:
    name: InnerSource repo crawler
    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v2
    
    - name: Run crawler tool
      uses: docker://ghcr.io/zkoppert/innersource-crawler:v1
      env:
        GH_TOKEN: ${{ secrets.GH_TOKEN }}
        ORGANIZATION: ${{ secrets.ORGANIZATION }}
        TOPIC: inner-source

Local usage without Docker

  1. Copy .env-example to .env
  2. 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.
  3. Fill out the .env file with the exact topic name you are searching for
  4. Fill out the .env file with the exact organization that you want to search in
  5. (Optional) Fill out the .env file with the exact URL of the GitHub Enterprise that you want to search in. Keep empty if you want to search in the public github.com.
  6. pip install -r requirements.txt
  7. Run python3 ./crawler.py, which will create a repos.json file containing the relevant metadata for the GitHub repos for the given topic
  8. Copy repos.json to your instance of the SAP-InnerSource-Portal and launch the portal as outlined in their installation instructions

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].