Skip to content

Commit 70fa07b

Browse files
ping-huang1claude
andcommitted
ci: pin Node 24 and socketsecurity in Socket scan
socketsecurity 2.11.2+ needs Node >= 22.13 for reachability analysis, and the nightly scan fails on Node 20. Pin Node 24 (recommended by Socket) and the CLI version so neither changes under the scan unannounced. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 0d725d7 commit 70fa07b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/socket_reachability.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
- name: Setup Node.js
4949
uses: actions/setup-node@v4
5050
with:
51-
node-version: "20"
52-
51+
# Bump together with the socketsecurity pin below. Check the changelog for Node requirement changes
52+
# (https://github.com/SocketDev/socket-python-cli/blob/main/CHANGELOG.md) and run this workflow by hand first.
53+
node-version: "24"
5354
- name: Install uv (Python package manager)
5455
uses: astral-sh/setup-uv@v4
5556

5657
- name: Install Socket CLI
57-
run: uv pip install socketsecurity --upgrade --system
58-
58+
run: uv pip install socketsecurity==2.11.3 --system
5959
- name: Run Socket Security Scan
6060
env:
6161
SOCKET_SECURITY_API_TOKEN: ${{ secrets.SOCKET_SECURITY_API_KEY }}

0 commit comments

Comments
 (0)