Skip to content

Commit 11b65fa

Browse files
authored
chore(ci): update socket-registry install action SHA pin (#1147)
Update SocketDev/socket-registry install action from 715b14fe to 24323cbd across ci, provenance, and weekly-update workflows.
1 parent 8b0a57c commit 11b65fa

File tree

3 files changed

+46
-22
lines changed

3 files changed

+46
-22
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ jobs:
119119
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
120120
CODE
121121
122-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
122+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
123123

124124
- name: Run lint
125-
run: pnpm --filter @socketsecurity/cli run check
125+
shell: bash
126+
run: |
127+
alias pnpm="$SFW_BIN pnpm"
128+
pnpm --filter @socketsecurity/cli run check
126129
127130
type-check:
128131
name: 🔍 Type Check
@@ -184,10 +187,13 @@ jobs:
184187
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
185188
CODE
186189
187-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
190+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
188191

189192
- name: Run type check
190-
run: pnpm --filter @socketsecurity/cli run type
193+
shell: bash
194+
run: |
195+
alias pnpm="$SFW_BIN pnpm"
196+
pnpm --filter @socketsecurity/cli run type
191197
192198
# Sharded unit tests for faster CI.
193199
test-sharded:
@@ -256,17 +262,23 @@ jobs:
256262
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
257263
CODE
258264
259-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
265+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
260266

261267
- name: Build CLI
262268
working-directory: packages/cli
263-
run: pnpm run build
269+
shell: bash
270+
run: |
271+
alias pnpm="$SFW_BIN pnpm"
272+
pnpm run build
264273
265274
- name: Run unit tests (shard ${{ matrix.shard }})
266275
working-directory: packages/cli
276+
shell: bash
267277
env:
268278
SHARD: ${{ matrix.shard }}
269-
run: pnpm test:unit --shard="$SHARD"/3
279+
run: |
280+
alias pnpm="$SFW_BIN pnpm"
281+
pnpm test:unit --shard="$SHARD"/3
270282
271283
# E2E tests
272284
e2e:
@@ -335,15 +347,21 @@ jobs:
335347
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
336348
CODE
337349
338-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
350+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
339351

340352
- name: Build CLI
341353
working-directory: packages/cli
342-
run: pnpm run build
354+
shell: bash
355+
run: |
356+
alias pnpm="$SFW_BIN pnpm"
357+
pnpm run build
343358
344359
- name: Run e2e tests (shard ${{ matrix.shard }})
345360
working-directory: packages/cli
361+
shell: bash
346362
env:
347363
SOCKET_CLI_API_TOKEN: ${{ secrets.SOCKET_CLI_API_TOKEN }}
348364
SHARD: ${{ matrix.shard }}
349-
run: pnpm run e2e-tests --shard="$SHARD"/2
365+
run: |
366+
alias pnpm="$SFW_BIN pnpm"
367+
pnpm run e2e-tests --shard="$SHARD"/2

.github/workflows/provenance.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ jobs:
5959

6060
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
6161

62-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
62+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
6363

6464
- name: Build CLI
65-
run: pnpm --filter @socketsecurity/cli run build
65+
shell: bash
66+
run: |
67+
alias pnpm="$SFW_BIN pnpm"
68+
pnpm --filter @socketsecurity/cli run build
6669
6770
- name: Generate platform matrix
6871
id: matrix
@@ -104,7 +107,7 @@ jobs:
104107

105108
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
106109

107-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
110+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
108111

109112
- name: Download CLI bundle
110113
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
@@ -119,6 +122,7 @@ jobs:
119122
MATRIX_PLATFORM: ${{ matrix.platform }}
120123
MATRIX_ARCH: ${{ matrix.arch }}
121124
run: |
125+
alias pnpm="$SFW_BIN pnpm"
122126
LIBC_FLAG=""
123127
if [ "$MATRIX_LIBC" = "musl" ]; then
124128
LIBC_FLAG="--libc=musl"
@@ -160,9 +164,9 @@ jobs:
160164

161165
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
162166

163-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
167+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
164168

165-
- run: npm install -g npm@latest
169+
- run: npm install -g npm@11.12.1
166170

167171
# Get versions for lock-stepped and independent packages.
168172
- name: Get versions
@@ -260,7 +264,10 @@ jobs:
260264
# Build and publish JS packages.
261265
# Order: cli/cli-with-sentry first (independent), then socket (depends on @socketbin/*).
262266
- name: Build CLI
263-
run: INLINED_PUBLISHED_BUILD=1 pnpm run build
267+
shell: bash
268+
run: |
269+
alias pnpm="$SFW_BIN pnpm"
270+
INLINED_PUBLISHED_BUILD=1 pnpm run build
264271
265272
- name: Publish @socketsecurity/cli
266273
if: ${{ inputs.cli && !inputs.dry-run }}

.github/workflows/weekly-update.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ jobs:
3838
node-version-file: .node-version
3939
cache: 'pnpm'
4040

41-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
41+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
4242

4343
- name: Check for npm updates
4444
id: check
45+
shell: bash
4546
run: |
47+
alias pnpm="$SFW_BIN pnpm"
4648
echo "Checking for npm package updates..."
4749
HAS_UPDATES=false
4850
NPM_UPDATES=$(pnpm outdated 2>/dev/null || true)
@@ -76,10 +78,7 @@ jobs:
7678
node-version-file: .node-version
7779
cache: 'pnpm'
7880

79-
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
80-
81-
- name: Install Claude Code
82-
run: npm install -g @anthropic-ai/claude-code
81+
- uses: SocketDev/socket-registry/.github/actions/install@6096b06b1790f411714c89c40f72aade2eeaab7c # main
8382

8483
- name: Create update branch
8584
id: branch
@@ -107,7 +106,7 @@ jobs:
107106
fi
108107
109108
set +e
110-
claude --print --dangerously-skip-permissions \
109+
pnpm exec claude --print --dangerously-skip-permissions \
111110
--model sonnet \
112111
"/updating - Run the updating skill to update all dependencies. Create atomic commits for each update. You are running in CI mode - skip builds and tests. Do not push or create a PR." \
113112
2>&1 | tee claude-output.log

0 commit comments

Comments
 (0)