Skip to content

Commit

Permalink
Merge pull request #490 from okta/add-reversing-labs
Browse files Browse the repository at this point in the history
add reversing labs
  • Loading branch information
duytiennguyen-okta authored Oct 23, 2024
2 parents 242e0c8 + 9032645 commit 1303b12
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
57 changes: 48 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Running changelog of releases since `2.0.0-rc.4`

## v5.0.2
- Fix unmarshalling error for Group owner object lastUpdated (#484) Thanks [@duytiennguyen-okta]
- Fix unmarshalling error for Group owner object lastUpdated (#486) Thanks [@duytiennguyen-okta]

## v5.0.1
- Fix unmarshalling error for Log object that does not have additional properties (#484) Thanks [@duytiennguyen-okta]
Expand Down
3 changes: 2 additions & 1 deletion okta/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func init() {
if err != nil {
fmt.Printf("Create new config should not be error %v", err)
}
configuration.Debug = false
configuration.Debug = true

apiClient = NewAPIClient(configuration)
}
Expand All @@ -40,6 +40,7 @@ func sweep() (err error) {
if err != nil {
return
}
fmt.Println("43", apiClient.cfg.Host)
err = sweepGroups()
if err != nil {
return
Expand Down

0 comments on commit 1303b12

Please sign in to comment.