You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the `$GITHUB_TOKEN` environment variable with a GitHub Access Token.
24
50
25
-
## Creating a GitHub Personal Access Token
51
+
### Creating a GitHub Personal Access Token
52
+
You will need a token for this service if regardless of how you choose to run it.
26
53
27
-
-In the top right corner of any page, click your profile photo, then click Settings.
54
+
-On github.com, click your profile photo, then click settings.
28
55
- In the user settings sidebar, click Personal access tokens.
29
56
- Click Generate new token
30
57
- Give your token a descriptive name.
31
-
- Select the scopes you wish to grant to this token. The default scopes allow you to interact with public and private repositories, user data, and gists
32
-
- Click Generate token.
33
-
- Copy the token to your clipboard. For security reasons, after you navigate off this page, no one will be able to see the token again.
58
+
- Select the scopes you wish to grant, select all read-only scopes
59
+
- Click 'Generate token'.
60
+
- Copy the token to your clipboard and keep safe.
61
+
62
+
### Environment Variables
63
+
Various settings can be changed using environment variables, see the list below for
64
+
all available variable names.
65
+
66
+
#### GITHUB_TOKEN
67
+
- The token to use when calling the GitHub api.
68
+
- Defaults to `NO_TOKEN`,
69
+
70
+
#### GITHUB_HOST
71
+
- The host to listen on in isolated mode.
72
+
- Defaults to `localhost`
73
+
74
+
#### GITHUB_PORT
75
+
- The port to listen on in isolated mode.
76
+
- Defaults to `8052` .
77
+
78
+
#### GITHUB_ISOLATED
79
+
- Starts isolated mode.
80
+
- Defaults to `false`.
81
+
82
+
#### GITHUB_REGISTRY
83
+
- Change the registry used to validate the module name.
84
+
- Defaults to `http://registry.npmjs.org/`.
85
+
86
+
## Messages Handled
87
+
This micro-service handles the following messages.
34
88
35
-
## Patterns Handled
36
89
### `role:github,cmd:get`
37
-
Request module details by name
90
+
Request a module's Github details. The name supplied must be a valid module on npm.
0 commit comments