Skip to content

Commit 4e697dc

Browse files
pin the semver CLI to an exact version
The publish job is the sole holder of npm publish rights for the @ProvableHQ packages, and semver is the only third-party code it fetches at run time. Pinning to an exact, immutable version closes off behavioral drift and package-takeover via a future semver release.
1 parent 99682f3 commit 4e697dc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ jobs:
7272
# Installed up front so a fetch failure is a loud step failure. If the
7373
# publish loop fetched it via npx on demand, a transient network error
7474
# would be indistinguishable from "version not newer" and would
75-
# silently skip publishing a package.
75+
# silently skip publishing a package. Pinned to an exact version: this
76+
# is the only third-party code fetched into the job that holds publish
77+
# rights for the @provablehq packages, and npm versions are immutable,
78+
# so a pin closes off both drift and package-takeover of new releases.
7679
- name: Install semver CLI
77-
run: npm install -g semver
80+
run: npm install -g semver@7.8.5
7881

7982
- name: Download release assets
8083
run: gh release download "$TAG" --pattern '*.zip' --dir artifacts

0 commit comments

Comments
 (0)