Skip to content

Commit db9bcba

Browse files
authored
Update npm-grunt.yml
1 parent 12a754c commit db9bcba

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

.github/workflows/npm-grunt.yml

-50
Original file line numberDiff line numberDiff line change
@@ -26,53 +26,3 @@ jobs:
2626
run: |
2727
npm install
2828
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
73-
run: |
74-
docker build . -t yourimage:tag
75-
snyk container monitor yourimage:tag --file=Dockerfile
76-
- name: Snyk IaC # Remove || true to fail if there are vulnerabilities
77-
run: |
78-
snyk iac test || true

0 commit comments

Comments
 (0)