snyk-dolly
v1.3.2
Published
Tool to help clone repositories between different organisations or source control management systems
Downloads
4
Readme
Snyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad hoc basis and as part of your CI (Build) system.
Dolly 🐑
Utilities to help clone wild repos from source SCM to destination SCM
What it does:
- Generates the clone ssh links and saves the result to disk.
- For each repo:
- Clones the repo from source to local machine the script is running on
- Creates an empty equivalent repo at destination
- Pushes the local repo to destination
- Deletes local repo
Usage
Run dolly help
to see all options and see help text
ssh-links
Generates a list of ssh links for all organizations accessible to the token. This will list all public organisations and their repos.
Supported SCMs: Github.com, Github Enterprise
clone
Clones a repo given an ssh link from organization A to organization B.
Supported SCMs to clone a repo into: Github.com
clone:many
Clones a repo 1 at a time from organization A to organization B given an input file of ssh links.
Supported SCMs to clone a repo into: Github.com
To use dolly
you will need to set the following env vars:
GITHUB_TOKEN
- the token that has access to list Github.com or Github Enterprise repos from all accessible organizations.TARGET_GITHUB_TOKEN
- the token that has access to delete & create repos in Github.com