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
Copy file name to clipboardexpand all lines: components/resc-vcs-scanner/README.md
+35-4
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ To create vcs_instances_config.json file please refer to: [Structure of vcs_inst
163
163
cd components/resc-vcs-scanner
164
164
pip install virtualenv
165
165
virtualenv venv
166
-
source venv/Scripts/activate
166
+
source venv/bin/activate
167
167
```
168
168
#### 2. Install resc_vcs_scanner package:
169
169
```bash
@@ -174,19 +174,19 @@ The CLI has 3 modes of operation, please make use of the --help argument to see
174
174
- Scanning a non-git directory:
175
175
```bash
176
176
secret_scanner dir --help
177
-
secret_scanner dir --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --dir=<directory to scan>
177
+
secret_scanner dir --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --ignored-blocker-path=<path to resc-ignore.dsv file> --dir=<directory to scan>
178
178
```
179
179
180
180
- Scanning an already cloned git repository:
181
181
```bash
182
182
secret_scanner repo local --help
183
-
secret_scanner repo local --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --dir=<directory of repository to scan>
183
+
secret_scanner repo local --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --ignored-blocker-path=<path to resc-ignore.dsv file> --dir=<directory of repository to scan>
184
184
```
185
185
186
186
- Scanning a remote git repository:
187
187
```bash
188
188
secret_scanner repo remote --help
189
-
secret_scanner repo remote --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --repo-url=<url of repository to scan>
189
+
secret_scanner repo remote --gitleaks-rules-path=<path to gitleaks toml rule> --gitleaks-path=<path to gitleaks binary> --ignored-blocker-path=<path to resc-ignore.dsv file> --repo-url=<url of repository to scan>
190
190
```
191
191
Most CLI arguments can also be provided by setting the corresponding environment variable.
192
192
Please see the --help options on the arguments that can be provided using environment variables, and the expected environment variable names.
@@ -195,6 +195,37 @@ These will always be prefixed with RESC_
195
195
Example: the argument **--gitleaks-path** can be provided using the environment variable **RESC_GITLEAKS_PATH**
196
196
</details>
197
197
198
+
### Ignoring findings
199
+
200
+
<details>
201
+
<summary>Preview</summary>
202
+
203
+
It is possible to ignore some blocker findings (e.g. false positive) by providing
204
+
a `resc-ignore.dsv` file. The bockers will be downgraded to a warning level and marked as **ignored**. Such file has the following structure:
-`finding_path` contains the path to the file with the blocking finding.
213
+
-`finding_rule` contains the name of the blocking rule.
214
+
-`finding_line_number` contains the line number of the finding.
215
+
-`expiration_date` is optional, contains the date in ISO 8601 format until which this ignore rule should be considered valid.
216
+
217
+
For example, if we want to ignore the finding in file `/etc/passwd` for rule `root_value_found` on line `1` until April 1st 2024 at 23:59 the following line should be used.
0 commit comments