Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicksantamaria/github-keys
https://github.com/nicksantamaria/github-keys
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nicksantamaria/github-keys
- Owner: nicksantamaria
- Created: 2020-11-02T23:22:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-20T23:03:53.000Z (almost 4 years ago)
- Last Synced: 2023-08-12T09:24:14.757Z (over 1 year ago)
- Language: Go
- Size: 3.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GitHub: Authorized Keys
========================[![CircleCI](https://circleci.com/gh/nicksantamaria/github-keys.svg?style=svg)](https://circleci.com/gh/nicksantamaria/github-keys)
**Maintainer**: Nick Santamaria
A simple `authorized_keys` file generator backed by GitHub organisations & teams.
## Usage
Sync keys for all users within a team.
```
export GITHUB_TOKEN=xxxx
github-keys \
--org org-name \
--team team-name \
--file ~/.ssh/authorized_keys \
--owner $(whoami)
```Sync keys for all users with access to a repo.
```
export GITHUB_TOKEN=xxxx
github-keys \
--org org-name \
--repo repo-name \
--file ~/.ssh/authorized_keys \
--owner $(whoami)
```## How it works
* Writes a new `authorized_keys` file
* Ensures permissions are correct