Skip to content

Commit

Permalink
Update snyk-security.yml
Browse files Browse the repository at this point in the history
Use node version 20 and install dependencies
  • Loading branch information
yangpulse-snyk authored Jun 12, 2024
1 parent 75cb75a commit ceabceb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
# In this case we want to upload the SAST issues to GitHub Code Scanning
uses: snyk/actions/setup@master

# For Snyk Open Source you must first set up the development environment for your application's dependencies
# For example for Node
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install --loglevel=error

# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
# Use || true to not fail the pipeline
- name: Snyk Code test
Expand All @@ -52,8 +60,6 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

# Runs Snyk Open Source (SCA) analysis and uploads result to Snyk.
- name: Install NPM
run: npm install --loglevel=error
- name: Snyk Open Source monitor
run: snyk monitor -d --all-projects
env:
Expand Down

0 comments on commit ceabceb

Please sign in to comment.