mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 02:51:27 +01:00
updated documentation to demonstrate a very basic configuration
Former-commit-id: 52683780d58dabc58758e90468429c1bc596bb7e
This commit is contained in:
@@ -12,6 +12,33 @@ seven days the update will only take a few seconds.
|
|||||||
|
|
||||||
### Create the DependencyCheck-report.html in the target directory
|
### Create the DependencyCheck-report.html in the target directory
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<project>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
...
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.owasp</groupId>
|
||||||
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
...
|
||||||
|
</plugins>
|
||||||
|
...
|
||||||
|
</build>
|
||||||
|
...
|
||||||
|
</project>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create the DependencyCheck-report.html and fail the build for CVSS greater then 8
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<project>
|
<project>
|
||||||
<build>
|
<build>
|
||||||
@@ -40,10 +67,6 @@ seven days the update will only take a few seconds.
|
|||||||
</project>
|
</project>
|
||||||
```
|
```
|
||||||
|
|
||||||
Note, the above configuration will fail the build if any dependencies are found
|
|
||||||
to have vulnerabilities with a CVSS score greater then 8. If you do not wish to
|
|
||||||
fail the build for CVSS scores do not specify the failBuildOnCVSS element.
|
|
||||||
|
|
||||||
### Create the dependency-check report within the site
|
### Create the dependency-check report within the site
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
|
|||||||
Reference in New Issue
Block a user