add security step to CI
This commit is contained in:
		@@ -8,6 +8,7 @@ cache:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
stages:
 | 
					stages:
 | 
				
			||||||
- mirror
 | 
					- mirror
 | 
				
			||||||
 | 
					- security
 | 
				
			||||||
- test
 | 
					- test
 | 
				
			||||||
- release
 | 
					- release
 | 
				
			||||||
- trigger
 | 
					- trigger
 | 
				
			||||||
@@ -20,6 +21,12 @@ mirror:
 | 
				
			|||||||
  tags:
 | 
					  tags:
 | 
				
			||||||
  - docker
 | 
					  - docker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					security:
 | 
				
			||||||
 | 
					  stage: security
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					    - npmci command yarn gobal add snyk
 | 
				
			||||||
 | 
					    - npmci command snyk test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
testLEGACY:
 | 
					testLEGACY:
 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
  script:
 | 
					  script:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,10 +7,7 @@
 | 
				
			|||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "test": "(npmts)",
 | 
					    "test": "(npmts)",
 | 
				
			||||||
    "testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)",
 | 
					    "testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)",
 | 
				
			||||||
    "devTest": "(npm test) && (node test.js --test true)",
 | 
					    "security":"snyk test"
 | 
				
			||||||
    "reinstall": "(rm -r node_modules && npm install)",
 | 
					 | 
				
			||||||
    "release": "(git pull origin master && npm version patch && git push origin master && git checkout release && git merge master && git push origin release && git checkout master)",
 | 
					 | 
				
			||||||
    "startdev": "(git checkout master && git pull origin master)"
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "repository": {
 | 
					  "repository": {
 | 
				
			||||||
    "type": "git",
 | 
					    "type": "git",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user