Skip to content

Commit 31f31b0

Browse files
authored
Use npm-install action to improve dependency installation
Replaced npm install command with npm-install action for caching.
1 parent dd3a216 commit 31f31b0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/snyk-infrastructure.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
cache-dependency-path: package.json
3232

3333
- name: Install Dependencies
34-
# This fixes the SNYK-CLI-0000 "Missing node_modules" error
35-
run: npm install
34+
uses: bahmutov/npm-install@c35a7cb7334c91342dde34eab45b35a0065d7f38
35+
with:
36+
useRollingCache: true
3637

3738
- name: Run Snyk to check for vulnerabilities
3839
uses: snyk/actions/node@e2221410bff24446ba09102212d8bc75a567237d # Pinned to specific SHA

0 commit comments

Comments
 (0)