Fetch GitHub Repositories

Fetch Github repositories

Return a list of Github repositories that Nightfall has access to. Each Github repository includes details like whether the repository is getting monitored or not, the last scanned time the Nightfall ran the scan against the applicable policies.

GEThttps://api.nightfall.ai/apps/v1/github/repositories
Query parameters
Response

Successful response

Headers
Body
repositoriesarray of GithubRepository (object)

the list of repositories being scanned

nextPageTokenstring

Next page cursor, omitted if end of results reached

Request
const response = await fetch('https://api.nightfall.ai/apps/v1/github/repositories', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "repositories": [
    {
      "repositoryName": "text",
      "isRepoPrivate": false,
      "repoLink": "text",
      "isMonitored": false,
      "githubUsername": "text"
    }
  ],
  "nextPageToken": "text"
}

Last updated