From 15b5e6ccc9653a15f69c764f18be2588f87d72fa Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Fri, 24 Apr 2026 21:37:32 +0000 Subject: [PATCH 1/2] chore(build): bind spotbugs:check + dependency-check:check to mvn verify (RAN-24) Both quality plugins were declared without `` so `mvn clean verify` (the command run by .github/workflows/ci-java.yml) silently skipped them. This is how 12 SpotBugs findings (RAN-23) accumulated on main without CI noticing. Adds: - spotbugs-maven-plugin: bind `check` goal to `verify` phase. - dependency-check-maven: bind `check` goal to `verify` phase, with `failBuildOnCVSS=7`, suppression file pointer, and a `` property (default false) so local devs can opt out of the slow NVD download via `-Ddependency-check.skip=true`. - dependency-check-suppressions.xml: empty baseline stub with policy comment. - ci-java.yml comment documenting that `verify` is the enforced gate. Verification (against origin/main HEAD 8f1ce18): mvn -B clean verify -DskipTests=true -Ddependency-check.skip=true exit=0 spotbugs-maven-plugin:check (spotbugs-verify): BugInstance size is 0 dependency-check-maven:check (dependency-check-verify): Skipping dependency-check Closes RAN-24. Co-Authored-By: Paperclip --- .github/workflows/ci-java.yml | 3 +++ dependency-check-suppressions.xml | 13 +++++++++++++ pom.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 dependency-check-suppressions.xml diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 3c030510..bc58a68f 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -18,6 +18,9 @@ jobs: distribution: 'temurin' java-version: '25' cache: 'maven' + # `verify` is the enforced quality gate: it runs unit + integration tests + # AND the spotbugs:check + dependency-check:check executions bound in pom.xml. + # Any of those failing breaks the build. - run: mvn clean verify -B - uses: actions/upload-artifact@v4 if: always() diff --git a/dependency-check-suppressions.xml b/dependency-check-suppressions.xml new file mode 100644 index 00000000..9dba522a --- /dev/null +++ b/dependency-check-suppressions.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/pom.xml b/pom.xml index 691566be..405204f9 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,14 @@ 12.2.0 3.6.0 + + false + - false -