1.3.2 • Published 2 years ago

snyk-dolly v1.3.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Snyk logo


Known Vulnerabilities

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: 1. Generates the clone ssh links and saves the result to disk. 2. For each repo: 1. Clones the repo from source to local machine the script is running on 2. Creates an empty equivalent repo at destination 3. Pushes the local repo to destination 4. 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