endorctl sync-org command to create projects for all the unscanned repositories in your GitHub organization. This does not automatically scan the projects. It creates projects in Endor Labs, measures scan coverage across a GitHub organization, and gives you visibility into your source control repository.
Usage
To sync your GitHub organization to Endor Labs:-
Export a GitHub token that can read all projects in your GitHub organization. To run the sync-org command you need at least
repoandread:org permissions. -
Run the sync-org command. By default, archived repositories are skipped.
The
sync-org command deletes projects in Endor Labs when their linked repositories are archived on GitHub. Use the --archived flag to include archived repositories and prevent them from being deleted in Endor Labs.Options
Theendorctl sync-org command uses the following flags and environment variables: