Update README
This commit is contained in:
parent
ea9f05116e
commit
9049e1a020
46
README.md
46
README.md
|
@ -24,11 +24,11 @@ identify and track the potentially vulnerable coding.
|
||||||
#### Prerequisites
|
#### Prerequisites
|
||||||
|
|
||||||
1. Java compiler and runtime (tested with jdk 1.8).
|
1. Java compiler and runtime (tested with jdk 1.8).
|
||||||
|
|
||||||
2. Maven (tested with version 3.5.0)
|
2. Maven (tested with version 3.5.0)
|
||||||
|
|
||||||
3. MongoDB (tested with version 3.4)
|
3. MongoDB (tested with version 3.4)
|
||||||
* make sure the mongodb service is running
|
* make sure the mongodb service is running
|
||||||
|
|
||||||
#### Building and packaging
|
#### Building and packaging
|
||||||
|
|
||||||
|
@ -85,14 +85,14 @@ The database has following collections and relationships between them:
|
||||||
```
|
```
|
||||||
db.projects.findOne();
|
db.projects.findOne();
|
||||||
{
|
{
|
||||||
_id : "", -> the id of a project (bson id)
|
_id : "", -> the id of a project (bson id)
|
||||||
name : "", -> the name of a project (e.g., "Tomcat")
|
name : "", -> the name of a project (e.g., "Tomcat")
|
||||||
repo_type : "", -> the type of its source repository (e.g., "git")
|
repo_type : "", -> the type of its source repository (e.g., "git")
|
||||||
repo_path : "", -> the path of the repository (e.g., "/home/user/tomcat")
|
repo_path : "", -> the path of the repository (e.g., "/home/user/tomcat")
|
||||||
vulns : [ -> the list of CVEs for which an analysis was performed
|
vulns : [ -> the list of CVEs for which an analysis was performed
|
||||||
vuln_id : "", (e.g,. "CVE-2014-0230", ...)
|
vuln_id : "", (e.g,. "CVE-2014-0230", ...)
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -100,11 +100,11 @@ db.projects.findOne();
|
||||||
|
|
||||||
```
|
```
|
||||||
db.vulns.findOne();
|
db.vulns.findOne();
|
||||||
{
|
{
|
||||||
_id : "", -> the id of a CVE (bson id)
|
_id : "", -> the id of a CVE (bson id)
|
||||||
cve : "", -> the name of a CVE
|
cve : "", -> the name of a CVE
|
||||||
owner_id : "", -> the bson id of a corresponding project
|
owner_id : "", -> the bson id of a corresponding project
|
||||||
fix_commit : "", -> the id of a commit that fixed the CVE
|
fix_commit : "", -> the id of a commit that fixed the CVE
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -113,14 +113,14 @@ db.vulns.findOne();
|
||||||
```
|
```
|
||||||
db.entries.findOne();
|
db.entries.findOne();
|
||||||
{
|
{
|
||||||
_id : "", -> the id of an evicence entry (bson id)
|
_id : "", -> the id of an evicence entry (bson id)
|
||||||
owner_id : "", -> the id of a corresponding CVE
|
owner_id : "", -> the id of a corresponding CVE
|
||||||
revision : "", -> the current commit/revision to which the entry belongs
|
revision : "", -> the current commit/revision to which the entry belongs
|
||||||
revision_distance : "", -> this number indincates how far the current revision is from fix
|
revision_distance : "", -> this number indincates how far the current revision is from fix
|
||||||
file_path : "", -> the path of a file to which the entry belongs
|
file_path : "", -> the path of a file to which the entry belongs
|
||||||
container : "", -> the method/constructor to which the entry belongs
|
container : "", -> the method/constructor to which the entry belongs
|
||||||
line_number : "", -> the number of the line of code
|
line_number : "", -> the number of the line of code
|
||||||
line_contents : "" -> the contents of the line of code
|
line_contents : "" -> the contents of the line of code
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue