File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: 2.1
22
33orbs :
44 win : circleci/windows@2.4.0
5- prodsec : snyk/prodsec-orb@1.0
5+ prodsec : snyk/prodsec-orb@1
66
77filters_branches_ignore_main : &filters_branches_ignore_main
88 filters :
@@ -61,6 +61,16 @@ commands:
6161 command : npm --version
6262
6363jobs :
64+ security-scans :
65+ << : *defaults
66+ resource_class : small
67+ docker :
68+ - image : cimg/node:<< parameters.node_version >>
69+ steps :
70+ - checkout
71+ - install_deps
72+ - prodsec/security_scans :
73+ mode : auto
6474 lint :
6575 << : *defaults
6676 docker :
@@ -108,6 +118,11 @@ workflows:
108118 context :
109119 - snyk-bot-slack
110120 channel : os-team-managed-alerts
121+ - security-scans :
122+ name : Perform security scans for PRs
123+ context :
124+ - open_source-managed
125+ << : *filters_branches_ignore_main
111126 - lint :
112127 name : Lint
113128 context : nodejs-install
@@ -131,5 +146,4 @@ workflows:
131146 context : nodejs-install
132147 requires :
133148 - Lint
134- << : *filters_branches_ignore_main
135-
149+ << : *filters_branches_ignore_main
Original file line number Diff line number Diff line change 1- Copyright 2018 Snyk Ltd.
1+ Copyright 2024 Snyk Ltd.
22
33Licensed under the Apache License, Version 2.0 (the "License");
44you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import * as baseDebug from 'debug';
55import { isEmpty } from 'lodash' ;
66import { Options } from './types' ;
77import { getFileContents } from './utils' ;
8+ import { PkgTree } from 'snyk-nodejs-lockfile-parser' ;
89
910const debug = baseDebug ( 'snyk-nodejs-plugin' ) ;
1011
1112export async function parse (
1213 root : string ,
1314 targetFile : string ,
1415 options : Options ,
15- ) : Promise < resolveNodeDeps . PackageExpanded > {
16+ ) : Promise < PkgTree > {
1617 if ( targetFile . endsWith ( 'yarn.lock' ) ) {
1718 options . file =
1819 options . file && options . file . replace ( 'yarn.lock' , 'package.json' ) ;
Original file line number Diff line number Diff line change 4343 "lodash.sortby" : " ^4.7.0" ,
4444 "micromatch" : " 4.0.2" ,
4545 "snyk-nodejs-lockfile-parser" : " 1.52.11" ,
46- "snyk-resolve-deps" : " 4.7.3 "
46+ "snyk-resolve-deps" : " 4.8.0 "
4747 },
4848 "devDependencies" : {
4949 "@types/jest" : " ^29.5.3" ,
You can’t perform that action at this time.
0 commit comments