sourcebot/configs/auth.json

55 lines
1.3 KiB
JSON
Raw Normal View History

2024-10-17 20:31:18 +00:00
{
"$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"
]
},
2024-11-01 17:51:14 +00:00
{
"type": "gitea",
"token": "gitea-token",
"orgs": [
"my-org"
]
},
2024-10-17 20:31:18 +00:00
// 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"
]
2024-11-01 17:51:14 +00:00
},
{
"type": "gitea",
"token": {
"env": "GITEA_TOKEN_ENV_VAR"
},
"orgs": [
"my-org"
]
2024-10-17 20:31:18 +00:00
}
]
}