Skip to content

Commit 7dd23c0

Browse files
committed
feat: add prodsec/security_scans
1 parent 4b6dd6b commit 7dd23c0

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.circleci/config.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
prodsec: snyk/prodsec-orb@1.0
4+
prodsec: snyk/prodsec-orb@1
55

66
defaults: &defaults
77
parameters:
@@ -50,6 +50,24 @@ commands:
5050
name: Install npm dependencies
5151
command: npm install
5252
jobs:
53+
security-scans:
54+
resource_class: small
55+
<<: *defaults
56+
docker:
57+
- image: cimg/node:<< parameters.node_version >>
58+
steps:
59+
- checkout
60+
- node-install-packages
61+
- run:
62+
name: Generate package-lock.json (Required for snyk OS scanning)
63+
command: npm install --package-lock
64+
- show_node_version
65+
- prodsec/security_scans:
66+
mode: auto
67+
release-branch: master
68+
open-source-additional-arguments: --exclude=test
69+
iac-scan: disabled
70+
5371
lint:
5472
<<: *defaults
5573
docker:
@@ -95,6 +113,17 @@ workflows:
95113
context:
96114
- snyk-bot-slack
97115
channel: os-team-managed-alerts
116+
filters:
117+
branches:
118+
ignore:
119+
- master
120+
121+
- security-scans:
122+
name: Security Scans
123+
node_version: "12"
124+
context:
125+
- open_source-managed
126+
- nodejs-install
98127

99128
- lint:
100129
name: lint

0 commit comments

Comments
 (0)