-
Notifications
You must be signed in to change notification settings - Fork 254
Expand file tree
/
Copy pathauth.json
More file actions
55 lines (54 loc) · 1.25 KB
/
auth.json
File metadata and controls
55 lines (54 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$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"
]
}
]
}