Skip to content

dlovitch/gh-2fa-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

gh-2fa-checker

This script checks a GitHub organization for users that do not have 2FA enabled and then outputs the results to a Slack channel.

Configuration parameters can be supplied via a YAML file (and named on the command line with the --config-file option) or environment variables.

The required variables are:

GITHUB_USERNAME
GITHUB_TOKEN
GITHUB_ORG
SLACK_API_TOKEN
SLACK_NOTIFICATION_CHANNEL

There is one optional variable, ADMINS_ONLY, which if set will restrict the search to only admin users.

To get set up:

  1. Generate a GitHub token for the GITHUB_TOKEN parameter by going here: https://github.com/settings/tokens
  • The only required permission is read:org
  1. Create a new Slack bot user via this page: https://slack.com/apps/A0F7YS25R-bots and use that bot's API token for the SLACK_API_TOKEN parameter.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages