Skip to content

feat: bundle gitleaks for all supported architectures#209

Merged
coopernetes merged 1 commit into
mainfrom
feat/gitleaks-multiarch
May 4, 2026
Merged

feat: bundle gitleaks for all supported architectures#209
coopernetes merged 1 commit into
mainfrom
feat/gitleaks-multiarch

Conversation

@coopernetes
Copy link
Copy Markdown
Member

Summary

  • Bumps gitleaks from 8.21.2 → 8.30.1
  • Bundles arch-specific gitleaks binaries as classpath resources (gitleaks/linux_x64, gitleaks/linux_arm64, gitleaks/darwin_x64, gitleaks/darwin_arm64) so GitleaksRunner can extract the right one at runtime
  • Fixes silent secret-scan failure on arm64 containers — previously a CI (amd64) build bundled only the amd64 binary, so the arm64 image could never execute it
  • Docker builds pass -PgitleaksTargets=linux_{x64,arm64} derived from TARGETARCH so each arch image carries only its own binary (lean images)
  • Default local build auto-detects host arch and downloads one binary; -PgitleaksTargets=all opts in to bundling all four (future JAR distribution)

Test plan

  • ./gradlew :git-proxy-java-core:test passes with auto-detected single binary
  • ./gradlew :git-proxy-java-core:downloadGitleaks -PgitleaksTargets=all downloads all four targets
  • ./gradlew :git-proxy-java-core:downloadGitleaks -PgitleaksTargets=linux_arm64 downloads only arm64 (Dockerfile path)
  • CI passes on both amd64 and arm64 build legs

closes #201

Bumps gitleaks from 8.21.2 to 8.30.1 and bundles all four supported
binaries (linux_x64, linux_arm64, darwin_x64, darwin_arm64) as
arch-specific classpath resources. GitleaksRunner.extractBundledBinary()
now selects the resource matching the runtime platform, fixing the silent
fail-open (or fail-closed) breakage on arm64 containers that previously
received a build-machine binary they could not execute.

Docker builds pass -PgitleaksTargets=linux_{x64,arm64} derived from
TARGETARCH so each arch-specific image carries only its own binary;
local/dev builds bundle all four.

closes #201

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coopernetes coopernetes enabled auto-merge May 4, 2026 05:27
@coopernetes coopernetes merged commit 2c08731 into main May 4, 2026
16 checks passed
@coopernetes coopernetes deleted the feat/gitleaks-multiarch branch May 4, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: bundle gitleaks for all supported architectures (linux/darwin x64/arm64)

1 participant