Skip to content

Commit bac6603

Browse files
authored
chore(ci): add sfw security scanning via socket-registry install action (#1138)
1 parent bfaf564 commit bac6603

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ jobs:
119119
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
120120
CODE
121121
122-
- name: Install dependencies
123-
run: pnpm install --frozen-lockfile
122+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
123+
with:
124+
frozen-lockfile: 'true'
124125

125126
- name: Run lint
126127
run: pnpm --filter @socketsecurity/cli run check
@@ -185,8 +186,9 @@ jobs:
185186
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
186187
CODE
187188
188-
- name: Install dependencies
189-
run: pnpm install --frozen-lockfile
189+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
190+
with:
191+
frozen-lockfile: 'true'
190192

191193
- name: Run type check
192194
run: pnpm --filter @socketsecurity/cli run type
@@ -258,8 +260,9 @@ jobs:
258260
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
259261
CODE
260262
261-
- name: Install dependencies
262-
run: pnpm install --frozen-lockfile
263+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
264+
with:
265+
frozen-lockfile: 'true'
263266

264267
- name: Build CLI
265268
working-directory: packages/cli
@@ -338,8 +341,9 @@ jobs:
338341
export default { text, view, renderToString, renderToStringWithWidth, printComponent, eprintComponent, getTerminalSize, TuiRenderer, init }
339342
CODE
340343
341-
- name: Install dependencies
342-
run: pnpm install --frozen-lockfile
344+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
345+
with:
346+
frozen-lockfile: 'true'
343347

344348
- name: Build CLI
345349
working-directory: packages/cli

.github/workflows/provenance.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959

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

62-
- run: pnpm install --frozen-lockfile
62+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
63+
with:
64+
frozen-lockfile: 'true'
6365

6466
- name: Build CLI
6567
run: pnpm --filter @socketsecurity/cli run build
@@ -104,7 +106,9 @@ jobs:
104106

105107
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
106108

107-
- run: pnpm install --frozen-lockfile
109+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
110+
with:
111+
frozen-lockfile: 'true'
108112

109113
- name: Download CLI bundle
110114
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
@@ -160,7 +164,9 @@ jobs:
160164

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

163-
- run: pnpm install --frozen-lockfile
167+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
168+
with:
169+
frozen-lockfile: 'true'
164170

165171
- run: npm install -g npm@latest
166172

.github/workflows/weekly-update.yml

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

41-
- name: Install dependencies
42-
run: pnpm install --frozen-lockfile
41+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
42+
with:
43+
frozen-lockfile: 'true'
4344

4445
- name: Check for npm updates
4546
id: check
@@ -77,8 +78,9 @@ jobs:
7778
node-version-file: .node-version
7879
cache: 'pnpm'
7980

80-
- name: Install dependencies
81-
run: pnpm install --frozen-lockfile
81+
- uses: SocketDev/socket-registry/.github/actions/install@715b14fec288ea6abc94a63dd74a2860c0db82f0 # main
82+
with:
83+
frozen-lockfile: 'true'
8284

8385
- name: Install Claude Code
8486
run: npm install -g @anthropic-ai/claude-code

0 commit comments

Comments
 (0)