Skip to content

Commit af227a1

Browse files
yosriadyclaude
andauthored
Harden supply chain security (#18)
* Harden supply chain security * Sync lockfile specifier with pinned ethereum-cryptography The dependency pin in package.json (^3.2.0 → 3.2.0) left the lockfile specifier out of sync, which broke `pnpm install --frozen-lockfile` in CI. The resolved version is unchanged (3.2.0); only the specifier field is updated. A full `pnpm install` would have been blocked by the 7d minimumReleaseAge cooldown against a recently-bumped transitive, so the lockfile is edited surgically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ddb5fb3 commit af227a1

4 files changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,22 @@ jobs:
5959

6060
- name: Run tests
6161
run: pnpm test
62+
63+
audit:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68+
69+
- name: Setup pnpm
70+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
71+
with:
72+
version: 11.1.2
73+
74+
- name: Setup Node
75+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
76+
with:
77+
node-version: "22.14.0"
78+
79+
- name: Audit production dependencies
80+
run: pnpm audit --prod --audit-level=high

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "tsc --noEmit"
2727
},
2828
"dependencies": {
29-
"ethereum-cryptography": "^3.2.0"
29+
"ethereum-cryptography": "3.2.0"
3030
},
3131
"devDependencies": {
3232
"@swc/core": "^1.3.102",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ packages:
88
- '.'
99

1010
# Supply-chain cooldown: don't resolve dependency versions until they
11-
# are at least 2880 minutes (48h) old. pnpm 11's default is 1440 (24h);
12-
# this preserves the explicit 48h policy from PR #14.
13-
minimumReleaseAge: 2880
11+
# are at least 10080 minutes (7d) old. pnpm 11's default is 1440 (24h).
12+
minimumReleaseAge: 10080
1413

1514
# Dependency build-script policy (pnpm 11 strictDepBuilds default).
1615
# Both packages ship prebuilt native bindings via platform-specific

0 commit comments

Comments
 (0)