Skip to content

Commit

Permalink
feat: add security quality gates
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Bollen-Snyk committed Jun 24, 2024
1 parent a281249 commit 830525f
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
orbs:
snyk: snyk/[email protected]
node: circleci/[email protected]
prodsec: snyk/prodsec-orb@1.0.2
prodsec: snyk/prodsec-orb@1

defaults: &defaults
working_directory: ~/snyk-iac-rules
Expand Down Expand Up @@ -90,25 +90,13 @@ jobs:
- run:
name: Run Golang tests
command: go test ./...
security-oss:
security-scans:
<<: *docker_go_image
resource_class: small
steps:
- checkout
- snyk/scan:
severity-threshold: medium
monitor-on-build: false
project: ${CIRCLE_PROJECT_REPONAME}
organization: cloud-cloud
security-code:
<<: *docker_go_image
steps:
- checkout
- snyk/scan:
command: code test
severity-threshold: medium
monitor-on-build: false
project: ${CIRCLE_PROJECT_REPONAME}
organization: cloud-cloud
- prodsec/security_scans:
mode: auto
lint_commit_message:
docker:
- image: cimg/node:14.19
Expand Down Expand Up @@ -186,6 +174,10 @@ workflows:
context:
- snyk-bot-slack
channel: group-infrastructure-as-code-alerts
- security-scans:
name: Security Scans
context:
- analysis-iac
- lint_commit_message:
name: Lint commit message
<<: *only_feature_branch
Expand All @@ -194,20 +186,6 @@ workflows:
requires:
- Lint commit message
<<: *only_feature_branch
- security-oss:
name: Snyk oss
context:
- snyk-cloud-dev-ex
requires:
- Lint & formatting
<<: *only_feature_branch
- security-code:
name: Snyk code
context:
- snyk-cloud-dev-ex
requires:
- Lint & formatting
<<: *only_feature_branch
- regression-test:
name: Regression Test
requires:
Expand Down

0 comments on commit 830525f

Please sign in to comment.