Giter Site home page Giter Site logo

github-auditor's Introduction

GitHub Auditor

Generate reports about the users and teams of your GitHub organization and their access to your repositories.

Requirements

  • To use this tool, you must be an Owner of the GitHub organization you wish to audit.
  • You will need a Personal Access Token from GitHub with the repo and read:org scopes enabled. Save this token in a file called token.secret in the base directory of this project.
  • This project was created using Node.js version 9.4.0. It is untested in other versions.

Usage

Begin by cloning this project to a convenient location on your local machine:

$ git clone https://github.com/aj-foster/github-auditor.git

Now, enter the project directory and install its dependencies:

$ cd github-auditor
$ npm install

Create a Personal Access Token for your GitHub account and save it in a file token.secret at the root of the project. Note: You probably want to revoke this token from your account when you finish the audit.

Finally, run the auditor by passing the URL-friendly name ("login") of the organization you wish to audit:

node index.js [organization]

Results can be found in output/[organization].html.

Advanced

The creation of an audit has two distinct steps: retrieving information from the GitHub API, and creating an HTML report of the data. In between these steps, the data is saved in a JSON format (output/[organization].json) which you may use for your own purposes.

To run one step or the other individually, use:

node index.js retrieve [organization]
node index.js report [organization]

github-auditor's People

Contributors

aj-foster avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.