mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
55 lines
No EOL
1.3 KiB
JSON
55 lines
No EOL
1.3 KiB
JSON
{
|
|
"$schema": "../schemas/v2/index.json",
|
|
"repos": [
|
|
// Authenticate using a token directly in the config.
|
|
// Private and public repositories will be included.
|
|
{
|
|
"type": "github",
|
|
"token": "ghp_token1234",
|
|
"orgs": [
|
|
"my-org"
|
|
]
|
|
},
|
|
{
|
|
"type": "gitlab",
|
|
"token": "glpat-1234",
|
|
"groups": [
|
|
"my-group"
|
|
]
|
|
},
|
|
{
|
|
"type": "gitea",
|
|
"token": "gitea-token",
|
|
"orgs": [
|
|
"my-org"
|
|
]
|
|
},
|
|
|
|
// You can also store the token in a environment variable and then
|
|
// references it from the config.
|
|
{
|
|
"type": "github",
|
|
"token": {
|
|
"env": "GITHUB_TOKEN_ENV_VAR"
|
|
}
|
|
},
|
|
{
|
|
"type": "gitlab",
|
|
"token": {
|
|
"env": "GITLAB_TOKEN_ENV_VAR"
|
|
},
|
|
"groups": [
|
|
"my-group"
|
|
]
|
|
},
|
|
{
|
|
"type": "gitea",
|
|
"token": {
|
|
"env": "GITEA_TOKEN_ENV_VAR"
|
|
},
|
|
"orgs": [
|
|
"my-org"
|
|
]
|
|
}
|
|
]
|
|
} |