Skip to content

Commit 61c18db

Browse files
authored
feat: add prodsec/security_scans (#211)
1 parent 207f4c9 commit 61c18db

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.circleci/config.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
orbs:
44
node: circleci/[email protected]
55
win: circleci/[email protected]
6-
prodsec: snyk/prodsec-orb@1.0
6+
prodsec: snyk/prodsec-orb@1
77

88
defaults: &defaults
99
parameters: &default_parameters_list
@@ -126,6 +126,23 @@ commands:
126126
command: dotnet --version
127127

128128
jobs:
129+
security-scans:
130+
resource_class: small
131+
<<: *defaults
132+
docker:
133+
- image: cimg/node:<< parameters.node_version >>
134+
steps:
135+
- checkout
136+
- node_install_packages
137+
- run:
138+
name: Generate package-lock.json (Required for snyk OS scanning)
139+
command: npm install --package-lock
140+
- show_node_version
141+
- prodsec/security_scans:
142+
mode: auto
143+
open-source-additional-arguments: --exclude=test
144+
iac-scan: disabled
145+
129146
lint:
130147
<<: *defaults
131148
docker:
@@ -196,12 +213,19 @@ workflows:
196213
test_and_release:
197214
jobs:
198215
- prodsec/secrets-scan:
199-
name: scan-repo
216+
name: Scan repository for secrets
200217
context:
201218
- snyk-bot-slack
202219
channel: os-team-managed-alerts
203220
<<: *filters_branches_ignore_main
204221

222+
- security-scans:
223+
name: Security Scans
224+
node_version: "16.20"
225+
context:
226+
- open_source-managed
227+
- nodejs-install
228+
205229
- lint:
206230
name: Lint
207231
context: nodejs-install

0 commit comments

Comments
 (0)