mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
updated documentation to demonstrate a very basic configuration
Former-commit-id: 19425cd973799d866dd92bf1748b0484a3eac180
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
|
||||
|
||||
```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
|
||||
<project>
|
||||
<build>
|
||||
@@ -40,10 +67,6 @@ seven days the update will only take a few seconds.
|
||||
</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
|
||||
|
||||
```xml
|
||||
|
||||
Reference in New Issue
Block a user