Skip to content
Open
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
46 changes: 41 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
version: 2.1

orbs:
general-platform-helpers: okta/[email protected]
python: circleci/[email protected]
platform-helpers-general: okta/[email protected]
platform-helpers: okta/platform-helpers@1
aws-cli: circleci/[email protected]

jobs:
build:
docker:
- image: cimg/python:3.10
steps:
- checkout
- persist_to_workspace:
root: .
paths:
- .
snyk-scan:
docker:
- image: cimg/python:3.10
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
run-on-non-main: true

workflows:
# See OKTA-624828
semgrep:
"Malware Scanner":
jobs:
- general-platform-helpers/job-semgrep-scan:
name: "Scan with Semgrep"
- build
- platform-helpers/job-reversinglabs-scan:
context:
- static-analysis
requires:
- build
- snyk-scan:
name: execute-snyk
filters:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the Synk scan should run on every branch. And this is how it's done in other projects.

branches:
only:
- master
- main
context:
- static-analysis