Skip to content

Commit 33ddd13

Browse files
authored
Route npm installs through Socket Firewall registry (#439)
1 parent fca7cda commit 33ddd13

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
- node/install:
5353
node-version: 22.14.0
5454

55+
- run:
56+
name: Verify Socket Firewall registry is active
57+
command: |
58+
REGISTRY=$(npm config get registry)
59+
echo "npm registry: $REGISTRY"
60+
echo "$REGISTRY" | grep -q socket-firewall-registry || { echo "FAIL: npm not routed through Socket Firewall"; exit 1; }
5561
- run:
5662
name: Install dependencies
5763
command: |
@@ -208,6 +214,12 @@ jobs:
208214
executor: default
209215
steps:
210216
- checkout
217+
- run:
218+
name: Verify Socket Firewall registry is active
219+
command: |
220+
REGISTRY=$(npm config get registry)
221+
echo "npm registry: $REGISTRY"
222+
echo "$REGISTRY" | grep -q socket-firewall-registry || { echo "FAIL: npm not routed through Socket Firewall"; exit 1; }
211223
- run:
212224
name: Add npm registry auth key
213225
command: |

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry = https://socket-firewall-registry.corporate.intercom.io/npm
2+
//socket-firewall-registry.corporate.intercom.io/npm/:_authToken = "BYUi5HGeKW4GPN1z6PXqjeo3IVmLJ9uFA8TQFzoP2VbRt3h0J9AMaqz9A"
3+
strict-ssl = true
4+
always-auth = true

0 commit comments

Comments
 (0)