From 648635952dddb47ca26f80d672899698bd3a84fb Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Wed, 4 Jan 2023 17:54:45 +0000 Subject: [PATCH] Add an owasp-check profile --- CONTRIBUTING.md | 7 +++++++ build-parent/pom.xml | 18 +++++++++++++++++- .../asciidoc/security-overview-concept.adoc | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0dc547a4feba4b..48580ca4b05302 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,6 +48,7 @@ fixes, documentation, examples... But first, read this page (including the small * [Extensions](#extensions) + [Descriptions](#descriptions) + [Update dependencies to extensions](#update-dependencies-to-extensions) + + [Check security vulnerabilities](#check-security-vulnerabilities) * [The small print](#the-small-print) * [Frequently Asked Questions](#frequently-asked-questions) @@ -694,6 +695,12 @@ were changed by the script. When removing an extension make sure to also remove all dependencies to it from all `pom.xml`. It's easy to miss this as long as the extension artifact is still present in your local Maven repository. +### Check security vulnerabilities + +When adding a new extension or updating the dependencies of an existing one, +it is recommended to run the [OWASP Dependency Check](https://jeremylong.github.io/DependencyCheck) with `mvn -Dowasp-check` +so that known security vulnerabilities in the extension dependencies can be detected early. + ## The small print This project is an open source project, please act responsibly, be nice, polite and enjoy! diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 2ff4c7496a5d06..741795648b24e6 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -172,6 +172,7 @@ 1.1.1 + 7.4.3 @@ -719,6 +720,11 @@ + + org.owasp + dependency-check-maven + ${owasp-dependency-check-plugin.version} + @@ -1235,7 +1241,17 @@ - + + owasp-check + + + owasp-check + + + + dependency-check:check + + Windows diff --git a/docs/src/main/asciidoc/security-overview-concept.adoc b/docs/src/main/asciidoc/security-overview-concept.adoc index 2af860fe09c569..e16ec5e6534e61 100644 --- a/docs/src/main/asciidoc/security-overview-concept.adoc +++ b/docs/src/main/asciidoc/security-overview-concept.adoc @@ -344,7 +344,7 @@ To add the OWASP Dependency check plugin to your Quarkus Maven project, add the [IMPORTANT] ==== -Set the `owasp-dependency-check-plugin.version` value to `7.1.1` or later. +Set the `owasp-dependency-check-plugin.version` value to `7.4.3` or later. ==== Next, configure the plugin as follows: