Skip to content

Scan multiple GitHub Organizations for dependency versions and view this information in a human-readable format. Senior Project - Summer 2021

License

Notifications You must be signed in to change notification settings

JakeQuilty/cbom-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cybersecurity Bill of Materials Dashboard

Scan multiple GitHub Organizations for dependency versions and view this information in a human-readable format

Setup

  1. Clone this repo
  2. Start with docker-compose up
  3. Hosted on http://localhost:3000

Usage

Add Organization

To add an organization, press the blue + button at the top right of the organizations page. Then put in the name of the GitHub Organization you would like to add. This is not case sensitive.

Scan

To scan the organization for dependencies, click on the organization in the table of orgs. Then click the Scan button in the top right of this page.

Scanning may take a while depending on the number of repos and dependencies.

Dev

Run In Containers

While this option works for making one small change, I'd recommend using the Recommended Dev Environment bellow.

Start Containers:

docker-compose up --build

  • Need to use --build to rebuild app with changes

Recommended Dev Environment

Run everything locally.

This is great for doing a lot of changes, because you do not have to rebuild and restart everything after every change.

  1. Start development database:

    1. cd test/db/
    2. docker-compose up
  2. In a new terminal, set local environment variables for database:

    export DB_ADDRESS=localhost \
        DB_USERNAME=user \
        DB_PASSWORD=password123 \
        DB_NAME=cbom_dashboard
  3. In the same terminal as 2., start backend:

    1. cd server/
    2. npm run dev
  4. Change frontend proxy address:

    1. Open app/package.json
    2. Change "proxy": "http://backend:3080" to "proxy": "http://localhost:3080"
  5. In a new terminal, start frontend:

    1. cd app/
    2. npm start
  6. Available on http:/localhost:3000

Make sure to change the proxie back before pushing.

Logs

Can be changed in config or with environment variable: LOG_LEVEL

Warning: Silly mode will output everything... So say RIP to your terminal history

Tests

Tests are currently very minimal.

Backend

  1. cd server/
  2. npm test

About

Scan multiple GitHub Organizations for dependency versions and view this information in a human-readable format. Senior Project - Summer 2021

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages