1.10.2 • Published 4 years ago

github-key-rotator v1.10.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

GitHub Key Rotator

The GitHub Key Rotator (gkr) is a CLI tool to automate the process of rotating GitHub / GitHub Enterprise SSH keys.

Quick start

  • Make sure your computer has:

    • node: >=12.0.0
    • npm: >=6.0.0
    • ssh-agent, ssh-keygen & ssh-add
  • Create a GitHub personal access token

    • please do check the admin:public_key permision for the token
  • Install the CLI:

    npm install -g github-key-rotator
  • Generate the key with CLI

    gkr -e YOUR_EMAIL -t YOUR_GITHUB_ACCESS_TOKEN
    # more usage please see gkr --help
  • Config your ~/.ssh/config to have:

    ######Add this section only if you are on MacOS######
    Host *
      AddKeysToAgent yes
      UseKeychain yes
    #####################################################
    
    Host github.com                  # or your GitHub Enterprise Domain
      Hostname github.com            # or your GitHub Enterprise Domain
      IdentityFile ~/.ssh/github     # same as the arg of `--file -f` you pass to the CLI, default is `~/.ssh/github`
      IdentitiesOnly yes

Development scripts

  • npm test: run tests (currently only run linting)
  • npm run lint: run lint & typecheck
  • npm run build: build the cli for local
  • npm start: dev with ts-node
1.10.2

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago