-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #490 from okta/add-reversing-labs
add reversing labs
- Loading branch information
Showing
3 changed files
with
51 additions
and
11 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 |
---|---|---|
|
@@ -4,12 +4,13 @@ version: 2.1 | |
|
||
orbs: | ||
platform-orb: okta/[email protected] | ||
python: circleci/[email protected] | ||
aws-cli: circleci/[email protected] | ||
|
||
# Define a job to be invoked later in a workflow. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs | ||
jobs: | ||
|
||
test-v2: | ||
test-v4: | ||
docker: | ||
- image: cimg/go:1.19.4 | ||
steps: | ||
|
@@ -20,16 +21,49 @@ jobs: | |
name: "test stage" | ||
command: make test | ||
|
||
test-v4: | ||
reversing-labs: | ||
docker: | ||
- image: cimg/go:1.19.4 | ||
- image: cimg/go:1.21.13 | ||
steps: | ||
- checkout | ||
- run: go version | ||
- platform-orb/step-load-dependencies | ||
- checkout | ||
- run: | ||
name: "test stage" | ||
command: make test | ||
name: Install Python | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip | ||
sudo pip install --upgrade pip | ||
- 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 | ||
- run: | ||
name: Install RL Wrapper | ||
command: | | ||
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl | ||
- aws-cli/setup: | ||
profile_name: default | ||
role_arn: $AWS_ARN | ||
region: us-east-1 | ||
- run: >- | ||
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null | ||
- run: | ||
name: Build binary to scan | ||
command: | | ||
go mod vendor | ||
go install ./... | ||
- 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 | ||
# Invoke jobs via workflows | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows | ||
|
@@ -46,5 +80,10 @@ workflows: | |
resource-class: "medium" | ||
context: | ||
- static-analysis | ||
"Malware Scanner": | ||
jobs: | ||
- reversing-labs: | ||
context: | ||
- okta-dcp | ||
|
||
# VS Code Extension Version: 1.4.0 |
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
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