Skip to content

Commit

Permalink
reverse labs scan (#107)
Browse files Browse the repository at this point in the history
* reverse labs scan
  • Loading branch information
bryanapellanes-okta authored Oct 24, 2024
1 parent 2c1c468 commit 5ff5ded
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .circleci/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
orbs:
python: circleci/[email protected]
aws-cli: circleci/[email protected]

jobs:
reversing-labs:
steps:
- checkout

- run: dotnet --version

- run:
name: get packages to scan
command: |
nuget restore ./Okta.Xamarin/Okta.Xamarin/Okta.Xamarin.csproj &&
nuget restore ./Okta.Xamarin/Okta.Xamarin.iOS/Okta.Xamarin.iOS.csproj &&
nuget restore ./Okta.Xamarin/Okta.Xamarin.Android/Okta.Xamarin.Android.csproj &&
nuget restore ./Okta.Xamarin/Tests/Okta.Xamarin.Test/Okta.Xamarin.Test.csproj
// 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: $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:
"Malware Scanner":
jobs:
- reversing-labs:
context:
- static-analysis

0 comments on commit 5ff5ded

Please sign in to comment.