Commit 4974993
committed
feat: pin and verify source sha256 across all 16 package families
Roll out the source-integrity pin (added for tiff) to every package that builds from a
downloaded tarball: 15 more families now carry a sha256 next to getURL, verified byte-for-byte
at build time by downloadAndExtractFile.verifyIntegrity. So a hijacked mirror or a re-tagged
upstream can no longer feed arbitrary C++ into any package's compile.
- scripts/pin-source-hash.js: downloads a package's pinned-version tarball and writes its sha256
into build.mjs. Run it after bumping nativeVersion (a bump without re-pinning fails the build
on hash mismatch).
- scripts/check-source-hashes.js + 'pnpm run check:sources': gate that every source-building
package pins a sha256, so a new package or version bump can't slip through unpinned. Wired
into 'pnpm run check'.1 parent 7108ff2 commit 4974993
18 files changed
Lines changed: 155 additions & 1 deletion
File tree
- cppjs-packages
- cppjs-package-curl/cppjs-package-curl
- cppjs-package-expat/cppjs-package-expat
- cppjs-package-gdal/cppjs-package-gdal
- cppjs-package-geos/cppjs-package-geos
- cppjs-package-geotiff/cppjs-package-geotiff
- cppjs-package-iconv/cppjs-package-iconv
- cppjs-package-jpegturbo/cppjs-package-jpegturbo
- cppjs-package-lerc/cppjs-package-lerc
- cppjs-package-openssl/cppjs-package-openssl
- cppjs-package-proj/cppjs-package-proj
- cppjs-package-spatialite/cppjs-package-spatialite
- cppjs-package-sqlite3/cppjs-package-sqlite3
- cppjs-package-webp/cppjs-package-webp
- cppjs-package-zlib/cppjs-package-zlib
- cppjs-package-zstd/cppjs-package-zstd
- scripts
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments