Commit b9c44c1
committed
build: make the build reproducible and retire the unverified Travis download
Supply-chain hardening of the build. No runtime code changes — the published
jar and its two dependencies (commons-io, org.json) are untouched, and
source/target stay at 1.7.
Remove .travis.yml. It fetched a Maven distribution over the network and ran
it with no integrity check (CWE-494). Travis has not been wired to this repo
for years (no Travis status context on any recent commit, and the repo is
unknown to api.travis-ci.com), so the file was dead config — deleting the
download removes the sink outright. Note that the usual "verify the SHA"
remedy would not have worked here: no .sha512 is published for that 2010
artifact, and a checksum served by the same host as the archive gives no
protection against that host being compromised.
Add .github/workflows/build.yml to replace the build definition Travis used to
carry. Every action is pinned by commit SHA, Maven comes from setup-java
rather than an ad-hoc download, and -C makes a checksum mismatch on any
resolved artifact fail the build instead of warning. Matrix: JDK 8, 11, 17.
Pin every plugin version. maven-gpg-plugin, maven-source-plugin and
maven-javadoc-plugin carried no <version> at all, so Maven silently resolved
whatever was newest at build time (3.2.8 / 3.4.0 / 3.12.0 today) — on the path
that GPG-signs what we publish to Central. Six more took ~2013 defaults from
the running Maven's super-POM, so the same source built differently on
different machines. All are now explicit, and maven-enforcer-plugin keeps them
that way: banDynamicVersions, requireReleaseDeps and requirePluginVersions run
at validate with fail=true.
Upgrade maven-compiler-plugin 2.3.2 (2011) -> 3.14.1 and maven-surefire-plugin
2.4.2 (2007) -> 3.5.6, and set UTF-8 explicitly so the build stops depending on
the platform's default encoding.
One reporting change to expect: surefire 2.4.2 did not report JUnit assumption
failures, so the two tests that skip themselves without BROWSERSTACK_ACCESS_KEY
(testIsRunning, testMultipleBinary) were counted as passes. 3.5.6 reports them
as skips. Same tests, same behaviour — the old count was wrong.1 parent 982ed22 commit b9c44c1
3 files changed
Lines changed: 132 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| |||
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
| |||
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
129 | 179 | | |
130 | 180 | | |
131 | 181 | | |
| |||
138 | 188 | | |
139 | 189 | | |
140 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
141 | 232 | | |
142 | 233 | | |
143 | 234 | | |
144 | | - | |
| 235 | + | |
145 | 236 | | |
146 | 237 | | |
147 | 238 | | |
| |||
150 | 241 | | |
151 | 242 | | |
152 | 243 | | |
153 | | - | |
| 244 | + | |
154 | 245 | | |
155 | 246 | | |
156 | 247 | | |
| |||
0 commit comments