This project uses Github REST API for scanning repositories. SQlite is used as data storage.
See .env.example for configuration.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
This GraphQL API supports 2 queries: List repositories and Repository details.
List Repositories includes next properties:
- url
- name
- owner
- size
Repository Details includes next properties:
- url
- name
- owner
- size
- isPrivate
- filesCount
- firstYamlContent
- activeWebhooks
- url
Go to http://localhost:4000/graphql and try next queries:
- List Repositories
query {
repositories {
url,
name,
size,
owner,
}
}
- Repository Details
query {
repositoryWithYaml: repository(url: "github.com/seclace/glowing-octo-fiesta") {
url,
name,
size,
owner,
isPrivate,
filesCount,
firstYamlContent,
activeWebhooks {
url,
},
}
repositoryWithWebhooks: repository(url: "github.com/seclace/sturdy-octo-memory") {
url,
name,
size,
owner,
isPrivate,
filesCount,
firstYamlContent,
activeWebhooks {
url,
},
}
}