Skip to content

Commit

Permalink
Merge pull request #243 from okta/rlsecure
Browse files Browse the repository at this point in the history
add reverse lab
  • Loading branch information
duytiennguyen-okta authored Oct 18, 2024
2 parents d2a6722 + 2bd0ebe commit 030daf3
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@ version: 2.1

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

jobs:
reversing-labs:
docker:
- image: cimg/python:3.10
steps:
- checkout
- run:
name: Install Python
command: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip install --upgrade pip
- run:
name: Download Reverse Labs Scanner
command: |
curl https://dso-resources.oktasecurity.com/scanner \
-H "x-api-key: $RESOURCE_TOKEN" \
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
- run:
name: Install RL Wrapper
command: |
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl
- aws-cli/setup:
profile_name: default
role_arn: $AWS_ARN
region: us-east-1
- run: >-
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null
- run:
name: Run Reversing Labs Wrapper Scanner
command: |
rl-wrapper \
--artifact ${CIRCLE_WORKING_DIRECTORY/#\~/$HOME} \
--name $CIRCLE_PROJECT_REPONAME\
--version $CIRCLE_SHA1\
--repository $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \
--commit $CIRCLE_SHA1 \
--build-env "circleci" \
--suppress_output
workflows:
# See OKTA-624804
Expand All @@ -11,3 +53,8 @@ workflows:
name: "Scan with Semgrep"
context:
- static-analysis
"Malware Scanner":
jobs:
- reversing-labs:
context:
- okta-dcp

0 comments on commit 030daf3

Please sign in to comment.