Skip to content

Commit 1f8e8b3

Browse files
authored
Merge pull request #39 from snyk/feat/quality-gates
feat: add prodsec/security_scans
2 parents 4b6dd6b + 6ff0697 commit 1f8e8b3

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.circleci/config.yml

Lines changed: 27 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,21 @@ 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: circleci/node:<< parameters.node_version >>
58+
steps:
59+
- checkout
60+
- show_node_npm_version
61+
- install_deps
62+
- prodsec/security_scans:
63+
mode: auto
64+
release-branch: master
65+
open-source-additional-arguments: --exclude=test
66+
iac-scan: disabled
67+
5368
lint:
5469
<<: *defaults
5570
docker:
@@ -95,6 +110,17 @@ workflows:
95110
context:
96111
- snyk-bot-slack
97112
channel: os-team-managed-alerts
113+
filters:
114+
branches:
115+
ignore:
116+
- master
117+
118+
- security-scans:
119+
name: Security Scans
120+
node_version: "12"
121+
context:
122+
- open_source-managed
123+
- nodejs-install
98124

99125
- lint:
100126
name: lint

0 commit comments

Comments
 (0)