forked from CMU-17313Q/cmu-17313q-f24-nodebb-f24-NodeBB
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (31 loc) · 929 Bytes
/
snyk.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Snyk Test
on:
pull_request:
branches:
- f24
workflow_call: # Usually called from deploy
defaults:
run:
shell: bash
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
jobs:
snyk:
runs-on: ubuntu-latest
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} # Ensure your token is added as a secret in GitHub
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: NPM Install
uses: bahmutov/npm-install@v1
with:
useLockFile: false
working-directory: ./install # specify the correct path to package.json
- name: Run Snyk Test
run: npx snyk test --severity-threshold=high
working-directory: ./install # specify the same path here as well