Skip to content

Commit 59f7e2a

Browse files
committed
fix(ci): build the Maven extension jar outside the Socket Firewall shims
The release build failed because `pnpm run build:maven-extension` runs the whole build subtree (pnpm -> bash -> mvnw -> wget) under Socket Firewall, which shims the package managers it wraps. sfw then intercepts the Maven wrapper's download of Maven from Maven Central and fails on that non-package fetch. Invoke build-jar.sh directly instead. bash/mvnw/wget aren't shimmed, so the Maven download runs outside the sfw-wrapped process tree and succeeds.
1 parent 68d109f commit 59f7e2a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/provenance.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,19 @@ jobs:
206206

207207
# Compile the Maven manifest extension jar so the dist build bundles it
208208
# into dist/manifest-scripts (the jar is never committed; it ships only in
209-
# the published package). The org action allowlist forbids actions/setup-java,
210-
# so use a JDK pre-installed on the runner image (JAVA_HOME_17_X64), falling
211-
# back to the runner's default `java`. build-jar.sh uses the Maven wrapper.
209+
# the published package). Invoke build-jar.sh directly, NOT via `pnpm run`:
210+
# Socket Firewall wraps the package managers (npm/pnpm/...) it shims, so a
211+
# `pnpm run` would route the Maven wrapper's download through sfw, which
212+
# fails on the non-package fetch. Running bash directly keeps the Maven
213+
# download outside the shimmed process tree. The org action allowlist forbids
214+
# actions/setup-java, so use a JDK pre-installed on the runner image
215+
# (JAVA_HOME_17_X64), falling back to the runner's default `java`.
212216
- name: Build Maven manifest extension jar
213217
run: |
214218
if [ -n "${JAVA_HOME_17_X64:-}" ]; then
215219
export JAVA_HOME="$JAVA_HOME_17_X64"
216220
fi
217-
pnpm run build:maven-extension
221+
bash src/commands/manifest/scripts/maven-extension/build-jar.sh
218222
219223
- run: INLINED_SOCKET_CLI_PUBLISHED_BUILD=1 pnpm run build:dist
220224
- name: Publish socket

0 commit comments

Comments
 (0)