-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Snyk security scan CircleCI workflow (#154)
* Add default CCI templates * Add snyk build steps * Use the macOS runner for the CircleCI jobs * Only run snyk on master --------- Co-authored-by: Mike Nachbaur <mike.nachbaur@okta.com>
- Loading branch information
1 parent
1aa3504
commit 327baa4
Showing
1 changed file
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
platform-helpers-general: okta/general-platform-helpers@1.8.13 | ||
|
||
jobs: | ||
build: | ||
macos: | ||
xcode: 14.2.0 | ||
steps: | ||
- checkout | ||
- run: | | ||
swift build | ||
- persist_to_workspace: | ||
root: ~/project | ||
paths: | ||
- . | ||
|
||
snyk-scan: | ||
macos: | ||
xcode: 14.2.0 | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
- platform-helpers-general/step-load-dependencies | ||
- platform-helpers-general/step-run-snyk-monitor: | ||
scan-all-projects: true | ||
skip-unresolved: false | ||
|
||
workflows: | ||
security-scan: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- platform-helpers-general/job-snyk-prepare: | ||
name: prepare-snyk | ||
requires: | ||
- build | ||
- snyk-scan: | ||
name: execute-snyk | ||
requires: | ||
- prepare-snyk |