René's URL Explorer Experiment


Title: build: reproducible build + retire the unverified Travis Maven download by 07souravkunda · Pull Request #102 · browserstack/browserstack-local-java · GitHub

Open Graph Title: build: reproducible build + retire the unverified Travis Maven download by 07souravkunda · Pull Request #102 · browserstack/browserstack-local-java

X Title: build: reproducible build + retire the unverified Travis Maven download by 07souravkunda · Pull Request #102 · browserstack/browserstack-local-java

Description: Supply-chain hardening of the build, from a security review of this repo. No runtime code changes — the published jar, its two dependencies (commons-io, org.json) and source/target 1.7 are all untouched, so there is no functional impact on consumers. Four findings; they did not all end the same way. 1. Removed .travis.yml — unverified Maven download (CWE-494) .travis.yml:16 fetched apache-maven-3.0-bin.zip over the network and executed it with no integrity check. Travis has not been wired to this repo for years — no Travis status context on any of the last 30 commits on master, and api.travis-ci.com does not know the repo. So the file was dead config, and deleting it removes the sink outright rather than patching something nothing runs. Worth recording why the obvious fix was not taken: "verify the archive's SHA-512" doesn't work here. No .sha512 is published for that 2010 artifact (…zip.sha512 → 404; only .sha1, .md5, .asc exist), and a checksum served by the same host as the archive gives no protection against that host being compromised — only the GPG .asc against Apache's KEYS would. A SHA check would have looked like a fix without being one. 2. Added .github/workflows/build.yml Replaces the build definition Travis used to carry — this repo otherwise has no build or test CI (only Semgrep and org-level CodeQL). every action pinned by full commit SHA, never a mutable tag Maven comes from setup-java, never an ad-hoc download mvn -C makes a checksum mismatch on any resolved artifact fail the build instead of warning matrix: JDK 8, 11, 17 Reviewers: this is the one piece that is new surface rather than removal. The security finding is closed by the deletion alone, so if you'd rather not take a new workflow in this PR, it can be dropped without weakening the fix. 3. Pinned every plugin version maven-gpg-plugin, maven-source-plugin and maven-javadoc-plugin carried no at all. Maven resolved whatever was newest at build time — today mvn -DperformRelease=true help:effective-pom gives gpg 3.2.8 / source 3.4.0 / javadoc 3.12.0, none of which any commit here chose. That is on the path that GPG-signs what we publish to Maven Central, so a new upstream release lands in the signing step unreviewed. Six more (jar, clean, install, site, resources, deploy) took defaults from the running Maven's super-POM — circa-2013 versions under Maven 3.8.6 — so the same source built with a different plugin set on a different machine. All now explicit in . maven-enforcer-plugin keeps it that way: banDynamicVersions + requireReleaseDeps + requirePluginVersions, at validate, with fail=true. This is a real gate — before the lifecycle plugins were pinned it failed the build and named all six. Note the report also asked for a Maven lockfile. Not adopted: the dependency graph is 4 artifacts, all at exact versions, no ranges and no SNAPSHOT, resolved from an immutable registry — it is already deterministic. A lockfile plugin would add a third-party build dependency and a standing maintenance obligation for no gain. The plugin non-determinism above is the real instance of that problem and is what got fixed. 4. Upgraded the outdated plugins (CWE-1104) maven-compiler-plugin 2.3.2 (2011) → 3.14.1, maven-surefire-plugin 2.4.2 (2007) → 3.5.6. Also set project.build.sourceEncoding to UTF-8 so the build stops depending on the platform default (all sources are ASCII, so output is unchanged). Testing mvn -C -Dgpg.skip -DskipTests clean verify on JDK 8, 11 and 17 PASS — all three enforcer rules pass, every pinned plugin resolves, main + test sources compile at target 1.7. Green on the GitHub runner, not just locally Release profile, -DperformRelease=true … package PASS — jar + sources + javadoc build with the newly pinned plugins Full test suite with BROWSERSTACK_ACCESS_KEY, locally identical to master — see below Real Automate session over a tunnel started through this build of the binding PASS The end-to-end check started a tunnel via new Local().start(...) using the jar built from this branch (verified in the process args: --source java-1.1.9), drove a Windows 11 / Chrome session through it to a local origin at http://bs-local.com:45678/, read the expected marker back, and stopped cleanly via stop() with no leftover processes. Why CI runs with -DskipTests The first version of this PR ran the full suite in CI and all three matrix legs failed. 12 of the 14 tests reach LocalBinary.getBinary(), which downloads the real BrowserStackLocal binary from an authenticated endpoint and returns HTTP 401 without BROWSERSTACK_ACCESS_KEY. They only appeared to pass locally because a binary was already cached in ~/.browserstack; a fresh runner has none, and cache: maven caches ~/.m2 only, so it cannot self-heal. -DskipTests still compiles the tests, so the job still covers what CI can actually prove here — the enforcer rules, all nine plugin pins, and 1.7 compilation on each JDK. Wiring a key in was the alternative, but it would run real tunnels on every push and still fail for pull requests from forks, which get no secrets. Run the suite locally with BROWSERSTACK_ACCESS_KEY + BROWSERSTACK_USERNAME set. Two differences you will notice in a local keyed run, neither a regression: surefire now reports 2 skips where it used to report 14 passes. testIsRunning and testMultipleBinary guard themselves with assumeNotNull(System.getenv("BROWSERSTACK_ACCESS_KEY")); surefire 2.4.2 did not report assumption failures and counted them as passes. 3.5.6 reports them correctly. Same tests, same behaviour — the old count was wrong. testMultipleBinary errors when run with a key (JSONException: A JSONObject text must begin with '{' at Local.java:81). I ran the same suite on origin/master with the key as a control: it fails identically — same test, same exception, same line. Pre-existing and untouched by this PR, which changes no runtime code. Worth its own issue: starting a second concurrent Local returns a non-JSON body that Local.start feeds straight to new JSONObject(...). Not covered here GPG signing and the actual Central deploy. maven-gpg-plugin is pinned to 3.2.8, which is the exact version Maven was already resolving — a no-op pin, not an upgrade. But signing needs a release key and deploying would publish, so the release profile was exercised with -Dgpg.skip and no deploy. maven-deploy-plugin (2.7 → 3.1.4) and maven-site-plugin (3.3 → 3.22.0) are untested for the same reason. Please run mvn -DperformRelease=true clean deploy against a dry-run/staging target once before the next release. Central publishing itself is unchanged (central-publishing-maven-plugin 0.8.0, autoPublish=false). JDK 21+. source/target stay at 1.7, which JDK 21 rejects — raising the bytecode target would be a functional change for consumers and is deliberately out of scope. Hence the 8/11/17 matrix.

Open Graph Description: Supply-chain hardening of the build, from a security review of this repo. No runtime code changes — the published jar, its two dependencies (commons-io, org.json) and source/target 1.7 are all unto...

X Description: Supply-chain hardening of the build, from a security review of this repo. No runtime code changes — the published jar, its two dependencies (commons-io, org.json) and source/target 1.7 are all unto...

Opengraph URL: https://github.com/browserstack/browserstack-local-java/pull/102

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1f8afa28-0ce8-6382-942c-2b21ed08e564
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B2E:27DDD:38BA3D:4DFC97:6B045140
html-safe-nonceb8b73e3b775d8d60b208fc2f63397687c9b3b831a5afd5b6ac89a230f40f649f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjJFOjI3REREOjM4QkEzRDo0REZDOTc6NkIwNDUxNDAiLCJ2aXNpdG9yX2lkIjoiNTc0NjE2ODY4ODA0MTIwODk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac078538333eaddea963a217be6949287a76ff69fec054e9bdbf36d2c92b84c283
hovercard-subject-tagpull_request:4322145610
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-local-java/pull/102/files
twitter:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50537259?s=400&v=4
og:image:altSupply-chain hardening of the build, from a security review of this repo. No runtime code changes — the published jar, its two dependencies (commons-io, org.json) and source/target 1.7 are all unto...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-java git https://github.com/browserstack/browserstack-local-java.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923142
octolytics-dimension-repository_nwobrowserstack/browserstack-local-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923142
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-java/pull/102/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-java%2Fpull%2F102%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-java%2Fpull%2F102%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-local-java
Reloadhttps://github.com/browserstack/browserstack-local-java/pull/102/files
Reloadhttps://github.com/browserstack/browserstack-local-java/pull/102/files
Reloadhttps://github.com/browserstack/browserstack-local-java/pull/102/files
browserstackhttps://github.com/browserstack
browserstack-local-javahttps://github.com/browserstack/browserstack-local-java
Codehttps://github.com/browserstack/browserstack-local-java
Issues19 (19)https://github.com/browserstack/browserstack-local-java/issues
Pull requests10 (10)https://github.com/browserstack/browserstack-local-java/pulls
Actionshttps://github.com/browserstack/browserstack-local-java/actions
Projectshttps://github.com/browserstack/browserstack-local-java/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-java/security
Insightshttps://github.com/browserstack/browserstack-local-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-local-java%2Fissues%2Fnew%2Fchoose
07souravkundahttps://github.com/07souravkunda
masterhttps://github.com/browserstack/browserstack-local-java/tree/master
locsec/WI-0b8c9887https://github.com/browserstack/browserstack-local-java/tree/locsec/WI-0b8c9887
Conversation 12 https://github.com/browserstack/browserstack-local-java/pull/102
Commits 3 https://github.com/browserstack/browserstack-local-java/pull/102/commits
Checks 9 https://github.com/browserstack/browserstack-local-java/pull/102/checks
Files changed https://github.com/browserstack/browserstack-local-java/pull/102/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
build: reproducible build + retire the unverified Travis Maven download https://github.com/browserstack/browserstack-local-java/pull/102/files#top
Show all changes 3 commits https://github.com/browserstack/browserstack-local-java/pull/102/files
b9c44c1 build: make the build reproducible and retire the unverified Travis d… 07souravkunda Aug 20, 2026 https://github.com/browserstack/browserstack-local-java/pull/102/commits/b9c44c13e54101e122ea436d0302024ac359f01c
2fb05a5 ci: skip the credential-gated tests in the build workflow 07souravkunda Aug 20, 2026 https://github.com/browserstack/browserstack-local-java/pull/102/commits/2fb05a5e7e9f35623473fae227d45c67eca60e9e
d31e688 docs: drop the dead Travis build badge 07souravkunda Aug 20, 2026 https://github.com/browserstack/browserstack-local-java/pull/102/commits/d31e6889be642db1c42031c2abc3fa15478adc5d
Clear filters https://github.com/browserstack/browserstack-local-java/pull/102/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
build.yml https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
.travis.yml https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
README.md https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
pom.xml https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/blob/master/CODEOWNERS#L1
.github/workflows/build.ymlhttps://github.com/browserstack/browserstack-local-java/pull/102/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
View file https://github.com/browserstack/browserstack-local-java/blob/d31e6889be642db1c42031c2abc3fa15478adc5d/.github/workflows/build.yml
Open in desktop https://desktop.github.com
07souravkundahttps://github.com/07souravkunda
Aug 20, 2026https://github.com/browserstack/browserstack-local-java/pull/102/files#r3821122745
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
07souravkundahttps://github.com/07souravkunda
Aug 20, 2026https://github.com/browserstack/browserstack-local-java/pull/102/files#r3821196291
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-java/pull/102/{{ revealButtonHref }}
07souravkundahttps://github.com/07souravkunda
Aug 20, 2026https://github.com/browserstack/browserstack-local-java/pull/102/files#r3821121500
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
07souravkundahttps://github.com/07souravkunda
Aug 20, 2026https://github.com/browserstack/browserstack-local-java/pull/102/files#r3821194180
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
07souravkundahttps://github.com/07souravkunda
Aug 20, 2026https://github.com/browserstack/browserstack-local-java/pull/102/files#r3821234488
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
https://github.com/browserstack/browserstack-local-java/blob/master/CODEOWNERS#L1
.travis.ymlhttps://github.com/browserstack/browserstack-local-java/pull/102/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
View file https://github.com/browserstack/browserstack-local-java/blob/982ed229a15bec8373624e78af9b9e0f20764345/.travis.yml
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
https://github.com/browserstack/browserstack-local-java/blob/master/CODEOWNERS#L1
README.mdhttps://github.com/browserstack/browserstack-local-java/pull/102/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/browserstack/browserstack-local-java/blob/d31e6889be642db1c42031c2abc3fa15478adc5d/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-java/pull/102/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/browserstack/browserstack-local-java/blob/master/CODEOWNERS#L1
pom.xmlhttps://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
View file https://github.com/browserstack/browserstack-local-java/blob/d31e6889be642db1c42031c2abc3fa15478adc5d/pom.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-java/pull/102/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://github.com/browserstack/browserstack-local-java/pull/102/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
Please reload this pagehttps://github.com/browserstack/browserstack-local-java/pull/102/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.