GithubHelp home page GithubHelp logo

isabella232 / graph-github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jupiterone/graph-github

0.0 0.0 0.0 1.82 MB

A graph conversion tool for https://www.github.com

License: Mozilla Public License 2.0

Shell 0.04% JavaScript 0.09% TypeScript 99.86%

graph-github's Introduction

JupiterOne Integration

Learn about the data ingested, benefits of this integration, and how to use it with JupiterOne in the integration documentation.

Development

Prerequisites

  1. Install Node.js using the installer or a version manager such as nvm or fnm.

  2. Install yarn or npm to install dependencies.

  3. Install dependencies with yarn install.

  4. Register an account in the system this integration targets for ingestion and obtain API credentials.

  5. cp .env.example .env and add necessary values for runtime configuration.

    When an integration executes, it needs API credentials and any other configuration parameters necessary for fetching data from the provider. The names of these parameters are defined in src/instanceConfigFields.ts. When executed in a development environment, values for these parameters are read from Node's process.env, loaded from .env. That file has been added to .gitignore to avoid committing credentials.

Running the integration

  1. yarn start to collect data
  2. yarn graph to show a visualization of the collected data
  3. yarn j1-integration -h for additional commands

Making Contributions

Start by taking a look at the source code. The integration is basically a set of functions called steps, each of which ingests a collection of resources and relationships. The goal is to limit each step to as few resource types as possible so that should the ingestion of one type of data fail, it does not necessarily prevent the ingestion of other, unrelated data. That should be enough information to allow you to get started coding!

See the SDK development documentation for a deep dive into the mechanics of how integrations work.

See docs/development.md for any additional details about developing this integration.

Changelog

The history of this integration's development can be viewed at CHANGELOG.md.

Versioning this project

To version this project and tag the repo with a new version number, run the following (where major.minor.patch is the version you expect to move to):

git checkout -b release-<major>.<minor>.<patch>
vim CHANGELOG.md # remember to update CHANGELOG.md with version & date!
git add CHANGELOG.md
yarn version
git push --follow-tags -u origin release-<major>.<minor>.<patch>

NOTE: It is critical that the tagged commit is the last commit before merging to main. If any commit is added after the tagged commit, the project will not be published to NPM.

NOTE: Make sure you select the Create a merge commit option when merging the PR for your release branch. Otherwise the publishing workflow will error out.

TIP: We recommend updating your global ~/.gitconfig with the push.followTags = true property. This will automatically add the --follow-tags flag to any new commits. See https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushfollowTags

[push]
	followTags = true

After the PR is merged to the main branch, the Build github workflow should run the Publish step to publish this project to NPM.

graph-github's People

Contributors

adam-in-ict avatar aiwilliams avatar austinkelleher avatar dependabot[bot] avatar erichs avatar janettelynch avatar kevincasey1222 avatar mknoedel avatar ndowmon avatar vdubber avatar zemberdotnet 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.