Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RL Scanner to CCI #1570

Merged
merged 14 commits into from
Oct 24, 2024
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version: 2.1

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

aliases:

Expand Down Expand Up @@ -59,6 +61,47 @@ jobs:
run-on-non-main: true
additional-arguments: "--maven-aggregate-project"

reversing-labs:
docker:
- image: cimg/python:3.10
steps:
- checkout

- run:
name: Install Dependencies
command: pip wheel -r requirements.txt -w _vendor/

- 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
# Install the wrapper that was downloaded
- run:
name: Install RL Wrapper
command: |
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl
# Setup the AWS profile
- aws-cli/setup:
profile_name: default
role_arn: $AWS_ARN
region: us-east-1
# Get the credentials and save to env
- run: >-
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null
# Run the wrapper, do not change anything here
- 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:
"Circle CI Tests":
jobs:
Expand All @@ -74,3 +117,8 @@ workflows:
- jdk21
context:
- static-analysis
"Malware Scanner":
jobs:
- reversing-labs:
context:
- okta-dcp