Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Snyk Dependency Scan #950

Merged
merged 5 commits into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2.1

orbs:
platform-orb: okta/general-platform-helpers@1.6
general-platform-helpers: okta/general-platform-helpers@1.8

aliases:

- &build_steps
- checkout
- platform-orb/step-load-dependencies
- general-platform-helpers/step-load-dependencies
- run: java -version
- run: mvn clean install -Pci -Dlicense.skip=true -Dmaven.test.skip.exec=true
- run: mvn test
Expand Down Expand Up @@ -53,10 +53,24 @@ jobs:
parallelism: 3
steps: *build_steps

snyk-scan:
docker:
- image: cimg/openjdk:17.0.6-node
steps:
- checkout
- run: npm install
- run: mvn clean install -Pci -Dlicense.skip=true -Dmaven.test.skip.exec=true
- general-platform-helpers/step-load-dependencies
- general-platform-helpers/step-run-snyk-monitor:
scan-all-projects: false
skip-unresolved: false
run-on-non-main: true
additional-arguments: "--maven-aggregate-project"

workflows:
"Circle CI Tests":
jobs:
- platform-orb/job-secrets-obtain:
- general-platform-helpers/job-secrets-obtain:
name: cache-secrets
secret-key: "OKTA_CLIENT_ORGURL;OKTA_CLIENT_TOKEN;OKTA_CLIENT_CONNECTIONTIMEOUT;OKTA_IT_OPERATION_DELAY"
- jdk8:
Expand All @@ -68,3 +82,17 @@ workflows:
- jdk17:
requires:
- cache-secrets
- general-platform-helpers/job-semgrep-prepare:
name: semgrep-prepare
- general-platform-helpers/job-semgrep-scan:
name: "Scan with Semgrep"
requires:
- semgrep-prepare
- general-platform-helpers/job-snyk-prepare:
name: prepare-snyk
requires:
- jdk17
- snyk-scan:
name: execute-snyk
requires:
- prepare-snyk