GitHub

To configure the Github Connector and forward audit logs to DNIF, follow the steps below:

  1. Generate an API token:
    1. Sign in to your Github account using this link: Github Sign In.
      image6-1
    2. In the upper-right corner of any page, click your profile photo, then click "Settings".
      image3-3
    3. In the left sidebar, click "Developer settings".
      image9-2
    4. In the left sidebar, click "Personal access tokens".
      image5-Jun-02-2023-09-15-50-5909-AM
    5. Click "Generate new token".
      image7-3
    6. Give your token a descriptive name.
      image8-2
    7. Set an expiration date for the token.
      image11
    8. Select the "admin:org" scope permission for the API token.
      image1-Jun-02-2023-09-17-46-7149-AM
    9. Click "Generate token".
      image10-2
  2. Get Enterprise name:
    1. In the top right corner of your Github Enterprise Server, click your profile photo, then click "Your organizations".
    2. The enterprise name will be mentioned on the left-hand side.
      image2-Jun-02-2023-09-19-59-8411-AM
  3. Configure the GitHub Connector in DNIF:
    image4-4 
Fill in the following fields:
      1. Connector Name: Enter a name for the connector.
      2. Connector Type: Enter "Github Connector".
      3. API Token: Enter the API Token generated in step 1.
      4. Organization: Enter the organization name for Github obtained in step 2.

Once you have filled in the configurations, you should be able to fetch audit logs from Github using the pull method and the Github REST APIs.