Skip to content

Commit 33ad69f

Browse files
Merge pull request #508 from okta/arvindkrishnakumar-okta-patch-3
Add RL Scanner to CCI
2 parents 9974c85 + 96f1f3b commit 33ad69f

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

.circleci/config.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ version: 2.1
22

33
orbs:
44
general-platform-helpers: okta/[email protected]
5-
5+
python: circleci/[email protected]
6+
aws-cli: circleci/[email protected]
7+
68
aliases:
79

810
- &build_steps
@@ -32,6 +34,50 @@ jobs:
3234
run-on-non-main: true
3335
additional-arguments: "--maven-aggregate-project"
3436

37+
reversing-labs:
38+
docker:
39+
- image: cimg/openjdk:17.0.11
40+
steps:
41+
- checkout
42+
43+
- run:
44+
name: Install Python
45+
command: |
46+
sudo apt-get update
47+
sudo apt-get install -y python3 python3-pip
48+
sudo pip install --upgrade pip
49+
- run:
50+
name: Download Reverse Labs Scanner
51+
command: |
52+
curl https://dso-resources.oktasecurity.com/scanner \
53+
-H "x-api-key: $DSO_RLSECURE_TOKEN" \
54+
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
55+
# Install the wrapper that was downloaded
56+
- run:
57+
name: Install RL Wrapper
58+
command: |
59+
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl
60+
# Setup the AWS profile
61+
- aws-cli/setup:
62+
profile_name: default
63+
role_arn: $AWS_ARN
64+
region: us-east-1
65+
# Get the credentials and save to env
66+
- run: >-
67+
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null
68+
# Run the wrapper, do not change anything here
69+
- run:
70+
name: Run Reversing Labs Wrapper Scanner
71+
command: |
72+
rl-wrapper \
73+
--artifact ${CIRCLE_WORKING_DIRECTORY/#\~/$HOME} \
74+
--name $CIRCLE_PROJECT_REPONAME\
75+
--version $CIRCLE_SHA1\
76+
--repository $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \
77+
--commit $CIRCLE_SHA1 \
78+
--build-env "circleci" \
79+
--suppress_output
80+
3581
workflows:
3682
"Circle CI Tests":
3783
jobs:
@@ -46,3 +92,8 @@ workflows:
4692
- jdk17
4793
context:
4894
- static-analysis
95+
"Malware Scanner":
96+
jobs:
97+
- reversing-labs:
98+
context:
99+
- static-analysis

0 commit comments

Comments
 (0)