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
The GuardRails CLI allows you to interact with [GuardRails](https://www.guardrails.io) via command line.
16
+
The GuardRails CLI allows you to interact with [GuardRails](https://www.guardrails.io) via the command line.
17
+
17
18
## Table of Contents
18
19
19
20
-[Pre-Requisites](#pre-requisites)
@@ -24,17 +25,17 @@ The GuardRails CLI allows you to interact with [GuardRails](https://www.guardrai
24
25
25
26
## Pre-Requisites
26
27
27
-
To use the GuardRails CLI, you need to have an active account and a CLI token.
28
+
To use the GuardRails CLI, you require an active GuardRails account and a CLI token.
28
29
29
30
More information on how to get started can be found [here](https://www.guardrails.io/docs/en/getting-started).
30
31
31
-
Your GuardRails account CLI token can be found in the account's setting page on the dashboard.
32
+
Your GuardRails account CLI token can be obtained under `Settings`->`CLI Authentication`on the GuardRails dashboard.
32
33
33
34
## Installation
34
35
35
36
### Installation scripts (Linux / OSX)
36
37
37
-
Just paste this command and you're good to go. We're assuming that you're using `bash` but you can change it accordingly based on the shell that you're using. You might be asked for a password for `sudo` in the process of installation.
38
+
Just paste this command, and you're good to go. We're assuming you're using `bash`, but you can change it accordingly based on the shell you're using. You might be asked for a password for `sudo` in the installation process.
You need to have [scoop](https://scoop.sh)installed in order to install `guardrails`. The rest will be similar to the installation scripts for Linux / OSX. You just need to paste this command into your powershell:
55
+
You require [scoop](https://scoop.sh)before installing `guardrails`. The rest will be similar to the installation scripts for Linux / OSX. Execute the below command in your powershell:
-`scan` : scans a repository for vulnerabilities and output results
65
-
-`version` : displays build version
64
+
-`scan` : Scans a repository for vulnerabilities and outputs results
65
+
-`version` : Displays the build version
66
66
67
-
For more information on all the options and arguments available please check the help menu with: `guardrails --help`
67
+
For more information on all the options and available arguments, please check the help menu with: `guardrails --help`
68
68
69
69
### How to read the results
70
70
71
-
The CLI will output the total number of vulnerabilities detected, if any.
72
-
73
-
Vulnerabilities detected are grouped by category, i.e. Hard-Coded Secrets.
71
+
The CLI will output the total number of detected vulnerabilities.
72
+
Vulnerabilities are grouped by category, i.e., `Hard-Coded Secrets`.
74
73
75
-
For each item within a category, there will be a severity index (see table below), the type of vulnerability and a link to a fixing advice in our documentation; and finally the file path and line number.
74
+
For each item within a category, the following information is shown:
75
+
- A severity index (see table below).
76
+
- The type of vulnerability containing a hyperlink to fixing advice in our documentation.
Here we're looking at the vulnerable `mypackage`dependancy in version `2.5.2` with a `Critical` severity declared in the file `awesome-product/Gemfile.lock` at line `14`.
87
+
Here we're looking at the vulnerable `mypackage`dependency in version `2.5.2` with a `Critical` severity declared in the file `awesome-product/Gemfile.lock` at line `14`.
Copy file name to clipboardExpand all lines: internal/client/guardrails/errors.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ import (
9
9
)
10
10
11
11
var (
12
-
ErrInvalidToken=errors.New("invalid token, please provide a valid Guardrails CLI token, available from dashboard > settings")
13
-
ErrRepositoryNotFound=errors.New("invalid repository, please provide an existing repository from the git provider account linked with Guardrails, available from dashboard > repositories")
12
+
ErrInvalidToken=errors.New("invalid token, please provide a valid GuardRails CLI token, available from dashboard -> settings")
13
+
ErrRepositoryNotFound=errors.New("invalid repository, please provide an existing repository from the git provider account linked with GuardRails, available from dashboard -> repositories")
0 commit comments