-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from okta/ak_okta_657845_add_dep_scans
OKTA-657845: Add Snyk software dependency scan
- Loading branch information
Showing
1 changed file
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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: | ||
|
@@ -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 |