Configure system users and their authorized SSH keys from Github Org/Teams
2.3K
export GITHUB_ORG="my-github-organization"
for login in `http https://api.github.com/orgs/${GITHUB_ORG}/members -p b | jq '.[].login' | tr -d '"'` ; do http https://api.github.com/users/${login}/keys -p b | jq '.[].key' ; done
Ideally, when using this, you want to keep your users synced to the Team members, and thus remove people when they are removed from the Team and/or Organization.
This could be notified directly by Github webhooks, especially since Organization webhooks were added
Backup /etc/passwd, /etc/group and /etc/shadow files with Ansible instead
of the current wrapper shell scripts?
Content type
Image
Digest
Size
76.9 MB
Last updated
about 8 years ago
docker pull horgix/github-ssh-keys-fetcher