You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/npm-grunt.yml
-50
Original file line number
Diff line number
Diff line change
@@ -26,53 +26,3 @@ jobs:
26
26
run: |
27
27
npm install
28
28
grunt
29
-
30
-
name: Snyk SCA, Code, IaC and Container CLI monitor example
31
-
32
-
on:
33
-
push:
34
-
branches: [ master ]
35
-
pull_request:
36
-
branches: [ master ]
37
-
38
-
jobs:
39
-
build:
40
-
name: Test and build
41
-
environment: snyk-npm
42
-
runs-on: ubuntu-latest
43
-
44
-
strategy:
45
-
matrix:
46
-
node-version: [v22.6.0]
47
-
48
-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
49
-
50
-
steps:
51
-
- uses: actions/checkout@v2
52
-
- name: Use Node.js ${{v22.6.0}}
53
-
uses: actions/setup-node@v2
54
-
with:
55
-
node-version: ${{ matrix.node-version }}
56
-
cache: 'npm'
57
-
58
-
- name: Setup Snyk + snyk-to-html # For information about the required commands for generating an HTML report see https://github.com/snyk/snyk-to-html
59
-
run: |
60
-
npm install snyk -g
61
-
npm install snyk-to-html -g
62
-
snyk auth ${{secrets.SNYK_AUTH}}
63
-
64
-
- name: Snyk Open Source # For testing and failing please add snyk test before snyk monitor
65
-
run: |
66
-
snyk monitor
67
-
# For a list of additional available flags/options see: https://docs.snyk.io/snyk-cli/commands
68
-
69
-
- name: Snyk Code # Remove || true to fail if there are vulnerabilities
70
-
run: |
71
-
snyk code test || true
72
-
- name: Snyk Container # Rename your image, for testing and failing please add snyk container test before snyk container monitor
0 commit comments