-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove testing in CCI, its in GA Signed-off-by: Brian Retterer <[email protected]>
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/[email protected] | ||
platform-helpers-general: okta/[email protected] | ||
aws-cli: circleci/[email protected] | ||
|
||
jobs: | ||
|
||
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: | ||
|
||
"Malware Scanner": | ||
jobs: | ||
- reversing-labs: | ||
context: | ||
- okta-dcp |