@@ -14,6 +14,9 @@ permissions:
1414 contents : read
1515 pull-requests : read
1616
17+ env :
18+ SOCKET_SECURITY_MODE : monitor # Options: monitor (non-blocking) or block (fails on vulnerabilities)
19+
1720jobs :
1821 unit-test :
1922 runs-on : ubuntu-latest
2427 node-version : [20.x, 22.x, 24.x]
2528
2629 steps :
30+ - uses : socketdev/action@v1
31+ with :
32+ mode : firewall-free
33+
2734 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2835 with :
2936 ref : ${{ github.event.pull_request.head.sha }}
5865
5966 - name : Install Packages
6067 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
61- run : yarn install --with-frozen-lockfile --ignore-scripts
68+ run : sfw yarn install --with-frozen-lockfile --ignore-scripts
6269
6370 - name : Check In-Repo Package Versions
6471 run : yarn run check-versions
9097 check : ['lint', 'format', 'commit-lint', 'dependencies']
9198
9299 steps :
100+ - uses : socketdev/action@v1
101+ with :
102+ mode : firewall-free
103+
93104 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
94105 with :
95106 ref : ${{ github.event.pull_request.head.sha }}
@@ -110,7 +121,7 @@ jobs:
110121
111122 - name : Install Packages
112123 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
113- run : yarn install --with-frozen-lockfile --ignore-scripts
124+ run : sfw yarn install --with-frozen-lockfile --ignore-scripts
114125
115126 - name : Lint Source Code
116127 if : matrix.check == 'lint'
@@ -137,6 +148,10 @@ jobs:
137148 runs-on : ubuntu-latest
138149
139150 steps :
151+ - uses : socketdev/action@v1
152+ with :
153+ mode : firewall-free
154+
140155 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
141156
142157 - name : Setup node 22
@@ -155,7 +170,7 @@ jobs:
155170
156171 - name : Install Packages
157172 if : steps.lerna-cache.outputs.cache-hit != 'true'
158- run : yarn install --with-frozen-lockfile --ignore-scripts
173+ run : sfw yarn install --with-frozen-lockfile --ignore-scripts
159174
160175 - name : build packages
161176 env :
@@ -174,6 +189,10 @@ jobs:
174189 runs-on : ubuntu-22.04
175190
176191 steps :
192+ - uses : socketdev/action@v1
193+ with :
194+ mode : firewall-free
195+
177196 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
178197 with :
179198 ref : ${{ github.event.pull_request.head.sha }}
@@ -248,7 +267,7 @@ jobs:
248267
249268 - name : Install Packages
250269 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
251- run : yarn install --with-frozen-lockfile
270+ run : sfw yarn install --with-frozen-lockfile
252271
253272 - name : build packages
254273 if : steps.lerna-cache.outputs.cache-hit == 'true'
@@ -294,6 +313,7 @@ jobs:
294313 VERSION=${{ steps.build-info.outputs.version }}
295314 BUILD_DATE=${{ steps.build-info.outputs.date }}
296315 GIT_HASH=${{ github.sha }}
316+ SOCKET_SECURITY_MODE=${{ env.SOCKET_SECURITY_MODE }}
297317
298318 - name : Test Express Docker image
299319 id : docker-test
@@ -337,6 +357,10 @@ jobs:
337357 runs-on : ubuntu-latest
338358
339359 steps :
360+ - uses : socketdev/action@v1
361+ with :
362+ mode : firewall-free
363+
340364 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
341365 with :
342366 ref : ${{ github.event.pull_request.head.sha }}
@@ -357,7 +381,7 @@ jobs:
357381
358382 - name : Install Packages
359383 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
360- run : yarn install --with-frozen-lockfile --ignore-scripts
384+ run : sfw yarn install --with-frozen-lockfile --ignore-scripts
361385
362386 - name : Check Dockerfile is up to date
363387 run : |
0 commit comments