Skip to content

Commit

Permalink
Merge pull request #395 from okta/ak_okta_657845_add_dep_scans
Browse files Browse the repository at this point in the history
OKTA-657845: Add Snyk software dependency scan
  • Loading branch information
arvindkrishnakumar-okta authored Dec 14, 2023
2 parents 298a194 + 317d05e commit 12b3b7b
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 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/[email protected]
general-platform-helpers: okta/[email protected]

aliases:

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

snyk-scan:
docker:
- image: cimg/openjdk:17.0.6-node
steps:
- checkout
- run: ./mvnw clean install -DskipITs
- 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_AUTHN_ITS_MFAENROLLGROUPID"
- jdk8:
Expand All @@ -63,9 +76,18 @@ workflows:
# See OKTA-624750
semgrep:
jobs:
- platform-orb/job-semgrep-prepare:
- jdk17
- general-platform-helpers/job-semgrep-prepare:
name: semgrep-prepare
- platform-orb/job-semgrep-scan:
- general-platform-helpers/job-semgrep-scan:
name: "Scan with Semgrep"
requires:
- semgrep-prepare
- semgrep-prepare
- general-platform-helpers/job-snyk-prepare:
name: prepare-snyk
requires:
- jdk17
- snyk-scan:
name: execute-snyk
requires:
- prepare-snyk

0 comments on commit 12b3b7b

Please sign in to comment.