1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Ignore advisories in checker.

This commit is contained in:
Sascha L. Teichmann 2023-08-01 21:38:55 +02:00
parent 5a4e5607cb
commit 98bf2990ae
3 changed files with 54 additions and 12 deletions

View file

@ -17,6 +17,7 @@ Application Options:
-r, --rate= The average upper limit of https operations per second (defaults to unlimited)
-y, --years=YEARS Number of years to look back from now
-t, --timerange=RANGE RANGE of time from which advisories to download
-i, --ignorepattern=PATTERN Dont download files if there URLs match any of the given PATTERNs
-H, --header= One or more extra HTTP header fields
--validator=URL URL to validate documents remotely
--validatorcache=FILE FILE to cache remote validations
@ -98,6 +99,14 @@ It is only allowed to specify one off them.
All interval boundaries are inclusive.
You can ignore certain advisories while checking by specifying a list
of regular expressions to match their URLs by using the `ignorepattern` option.
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain the sub strings **white** or **red**.
In the config file this has to be noted as:
```
ignorepattern = [".*white.*", ".*red.*"]
```
### Remarks
The `role` given in the `provider-metadata.json` is not