Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@ jobs:
sleep 10

- name: Test
run: mvn test -B
run: |
Comment thread
phillipleblanc marked this conversation as resolved.
EXTRA=""
# JDK 23+ disables sun.misc.Unsafe memory methods by default (JEP 471).
# Arrow/Netty still require them for off-heap memory allocation.
if [ "${{ matrix.java.version }}" -ge 23 ] 2>/dev/null; then
EXTRA="--sun-misc-unsafe-memory-access=allow"
fi
mvn test -B -DextraArgLine="$EXTRA"
env:
API_KEY: ${{ secrets.SPICE_CLOUD_QUICKSTART_API_KEY }}

Expand Down Expand Up @@ -224,9 +231,11 @@ jobs:
dependency-check-data-${{ runner.os }}-

- name: OWASP Dependency-Check
# NVD API is unreliable (429s, timeouts without API key). Don't block CI.
continue-on-error: true
Comment thread
phillipleblanc marked this conversation as resolved.
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
run: mvn dependency-check:check -B
run: mvn dependency-check:check -B -DnvdApiKey="$NVD_API_KEY"
Comment thread
phillipleblanc marked this conversation as resolved.

- name: Upload dependency-check report
if: always()
Expand Down
15 changes: 15 additions & 0 deletions owasp-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<!--
CVE-2026-25087: Affects Apache Arrow <= 19.0.0.
No upstream fix is available yet (19.0.0 is the latest release).
Suppress until Arrow ships a patched version, then remove this entry.
-->
<suppress>
<notes><![CDATA[
CVE-2026-25087 in Apache Arrow. No fix available as of Arrow 19.0.0.
Tracked for removal when Arrow publishes a patched release.
]]></notes>
Comment thread
phillipleblanc marked this conversation as resolved.
<cve>CVE-2026-25087</cve>
Comment thread
phillipleblanc marked this conversation as resolved.
</suppress>
</suppressions>
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- Placeholder for JDK-version-specific JVM flags (e.g. sun.misc.Unsafe access).
Set via -DextraArgLine="..." on the Maven command line. -->
<extraArgLine></extraArgLine>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -89,8 +92,12 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
<configuration>
<!-- @{argLine} is set by JaCoCo's prepare-agent goal -->
<argLine>@{argLine} --add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<!-- @{argLine} is set by JaCoCo's prepare-agent goal.
Arrow memory + Netty require reflective access to internal JDK APIs:
java.nio: Arrow memory-core (DirectByteBuffer access)
jdk.internal.misc: Netty PlatformDependent (Unsafe for off-heap buffers)
${extraArgLine} is set by CI for JDK 23+ (sun.misc.Unsafe access flag). -->
Comment thread
phillipleblanc marked this conversation as resolved.
<argLine>@{argLine} --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED ${extraArgLine}</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -165,6 +172,10 @@
<version>12.2.0</version>
<configuration>
<failBuildOnCVSS>7</failBuildOnCVSS>
<suppressionFile>owasp-suppressions.xml</suppressionFile>
Comment thread
phillipleblanc marked this conversation as resolved.
<!-- Don't fail the build when the NVD API is unavailable (429, timeouts).
The scan will proceed with cached/local data instead. -->
<failOnError>false</failOnError>
</configuration>
</plugin>
<!-- P1: Test coverage reporting -->
Expand Down
Loading