Skip to content

Commit 744693f

Browse files
authored
Route CI npm/yarn installs through Socket Firewall registry (#179)
1 parent 9bbd823 commit 744693f

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
- v1-dependencies-{{arch}}-{{ checksum "package.json" }}
1717
- v1-dependencies-{{arch}}-
1818

19+
- run:
20+
name: Verify Socket Firewall registry is active
21+
command: |
22+
REGISTRY=$(npm config get registry)
23+
echo "npm registry: $REGISTRY"
24+
echo "$REGISTRY" | grep -q socket-firewall-registry || { echo "FAIL: npm not routed through Socket Firewall"; exit 1; }
25+
1926
- run: yarn install
2027

2128
- save_cache:
@@ -40,4 +47,6 @@ workflows:
4047

4148
test:
4249
jobs:
43-
- test
50+
- test:
51+
context:
52+
- socket-firewall

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Route all npm/yarn installs through the Socket Firewall registry
2+
registry=https://socket-firewall-registry.corporate.intercom.io/npm
3+
//socket-firewall-registry.corporate.intercom.io/npm/:_authToken=${SOCKET_NPM_TOKEN}
4+
always-auth=true

0 commit comments

Comments
 (0)