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
{{ message }}
This repository was archived by the owner on May 8, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-16
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,25 @@ Please note that in case of naming conflicts built-in reporters (as listed above
35
35
36
36
The Node Security CLI supports adding exceptions. These are advisories that you have evaluated and personally deemed unimportant for your project.
37
37
38
-
In order to leverage this capability, create a `.nsprc` file in the root of your project with content like the following:
38
+
There are two ways to leverage this capability, online or offline. To use online exceptions, register your project on [our online portal](https://nodesecurity.io). From there you can manage your exceptions from a central location.
39
+
40
+
In order to inform the CLI tool that it should use these settings, you'll have to create a settings file (and login if your project is private). You'll need both the organization name and the UUID for your project, these can be
41
+
retrieved from the URL from our portal. For example, if your project is [hapi](https://github.com/hapijs/hapi) and your project URL is https://nodesecurity.io/orgs/hapi/projects/2a6e5642-b7a1-4b93-b8fb-21c1a5043f42 then your
42
+
organization name is `hapi` and your project UUID is `2a6e5642-b7a1-4b93-b8fb-21c1a5043f42`.
43
+
44
+
Using that information, create a `.nsprc` file with the following content:
When you next run `nsp check` your exceptions will be retrieved from online. If your project is a private one, you will additionally need to run `npm login` which will create another `.nsprc` file in your home directory with an
54
+
authentication token that will allow the CLI tool to look up your settings.
55
+
56
+
For offline exceptions, create a `.nsprc` file in the root of your project with content like the following:
39
57
40
58
```js
41
59
{
@@ -51,21 +69,7 @@ Be careful using this feature. If you add code later that is impacted by an excl
51
69
52
70
## Proxy Support
53
71
54
-
The Node Security CLI has proxy support by using [proxy-agent](https://www.npmjs.com/package/proxy-agent).
55
-
56
-
The currently implemented protocol mappings are listed in the table below:
0 commit comments