-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
55 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ version: 2.1 | |
|
||
orbs: | ||
general-platform-helpers: okta/[email protected] | ||
python: circleci/[email protected] | ||
aws-cli: circleci/[email protected] | ||
|
||
aliases: | ||
|
||
|
@@ -51,14 +53,61 @@ jobs: | |
steps: | ||
- checkout | ||
- run: npm install | ||
- run: mvn clean install -Pci -Dlicense.skip=true -Dmaven.test.skip.exec=true | ||
- run: mvn clean install -Pci -Dlicense.skip=true -Dmaven.test.skip.exec=true -DskipITs | ||
- general-platform-helpers/step-load-dependencies | ||
- general-platform-helpers/step-run-snyk-monitor: | ||
scan-all-projects: false | ||
skip-unresolved: false | ||
run-on-non-main: true | ||
additional-arguments: "--maven-aggregate-project" | ||
|
||
reversing-labs: | ||
docker: | ||
- image: cimg/openjdk:21.0.2-node | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- run: mvn clean install -Pci -Dlicense.skip=true -Dmaven.test.skip.exec=true -DskipITs | ||
# Necessary to Install rl wrapper | ||
- run: | ||
name: Install Python | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip | ||
sudo pip install --upgrade pip | ||
# Download the scanner from Okta Security | ||
- run: | ||
name: Download Reverse Labs Scanner | ||
command: | | ||
curl https://dso-resources.oktasecurity.com/scanner \ | ||
-H "x-api-key: $DSO_RLSECURE_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: | | ||
echo "Scanning " ${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/api | ||
rl-wrapper \ | ||
--artifact ${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/api \ | ||
--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: | ||
|
@@ -74,3 +123,8 @@ workflows: | |
- jdk21 | ||
context: | ||
- static-analysis | ||
"Malware Scanner": | ||
jobs: | ||
- reversing-labs: | ||
context: | ||
- static-analysis |