Code Monkey home page Code Monkey logo

notgithub-token-scanning's Introduction

NotGitHub Token Scanning

Disclaimer: I'm not affiliated with GitHub in any way.

This project defines a simple Python service that replaces GitHub when integrating the Secrets Scanning feature from GitHub from the point of view of the integrating app: it does no scanning at all but it lets you simulate realistic payloads that GitHub would be sending to your service if it found some tokens.

NotGitHub Token Scanning screenshot

How to

Run using docker

Docker without compose:

$ docker run \
    --rm -p 8000:8000 -e "NOTGITHUB_DEFAULT_URL=http://other/_/github/disclose" \
    ewjoachim/notgithub-token-scanning

Docker compose:

notgithub:
  image: ewjoachim/notgithub-token-scanning
  environment:
    NOTGITHUB_DEFAULT_URL: "http://your-service/your/disclose/url"

Build & run without docker

In a virtual environment, run scripts/build and scripts/serve

Use

Visit / on port 8000. Add/remove/reorder keys, select the "current" key. This will impact both the keys exposed at /meta/public_keys/token_scanning and the current key will be the one used for signing the payload.

Enter your payload and the URL to call. Default url can be configured with the NOTGITHUB_DEFAULT_URL environment variable.

notgithub-token-scanning's People

Contributors

abitrolly avatar ewjoachim 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.