Skip to content

A GitHub Action that retrieves all **internal** repositories from your GitHub Enterprise Account.

Notifications You must be signed in to change notification settings

helaili/ea-repo-list

Repository files navigation

ea-repo-list action

This action retrieves all internal repositories from your GitHub Enterprise Account.

Inputs

enterprise

Required The name of the Enterprise Account.

token

Required A GitHub Personal Access Token allowing to browse the Enterprise Account thanks to the read:org and read:enterprise permissions. Note that this token must be allowed with all SAML enabled organizations.

Screen Shot 2021-01-25 at 22 01 39

outputFilename

The file to write the list of repositories to.

ghes

The URL to the GHES instance e.g. https://my-ghes.com

Outputs

repo-list

An array containing the list of internal repositories for each organization of the Enterprise Account.

Example usage

jobs:
  repo-list:
    runs-on: ubuntu-latest
 
    steps:
    - uses: actions/checkout@v2
    - name: Get the repos
      uses: helaili/ea-repo-list@master
      with:
        enterprise: octodemo
        outputFilename: repos.json
        token: ${{secrets.GH_EA_TOKEN}}
    - name: Save the repos
      run: |
          git config user.name github-actions
          git config user.email [email protected]
          git add .
          git commit --allow-empty -m "latest list of repositories"
          git push

About

A GitHub Action that retrieves all **internal** repositories from your GitHub Enterprise Account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published