Skip to content

Commit 1303b12

Browse files
Merge pull request #490 from okta/add-reversing-labs
add reversing labs
2 parents 242e0c8 + 9032645 commit 1303b12

File tree

3 files changed

+51
-11
lines changed

3 files changed

+51
-11
lines changed

.circleci/config.yml

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ version: 2.1
44

55
orbs:
66
platform-orb: okta/general-platform-helpers@1.9
7+
python: circleci/python@2.0.3
8+
aws-cli: circleci/aws-cli@5.1
79

810
# Define a job to be invoked later in a workflow.
911
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
1012
jobs:
11-
12-
test-v2:
13+
test-v4:
1314
docker:
1415
- image: cimg/go:1.19.4
1516
steps:
@@ -20,16 +21,49 @@ jobs:
2021
name: "test stage"
2122
command: make test
2223

23-
test-v4:
24+
reversing-labs:
2425
docker:
25-
- image: cimg/go:1.19.4
26+
- image: cimg/go:1.21.13
2627
steps:
27-
- checkout
28-
- run: go version
29-
- platform-orb/step-load-dependencies
28+
- checkout
3029
- run:
31-
name: "test stage"
32-
command: make test
30+
name: Install Python
31+
command: |
32+
sudo apt-get update
33+
sudo apt-get install -y python3 python3-pip
34+
sudo pip install --upgrade pip
35+
- run:
36+
name: Download Reverse Labs Scanner
37+
command: |
38+
curl https://dso-resources.oktasecurity.com/scanner \
39+
-H "x-api-key: $RESOURCE_TOKEN" \
40+
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
41+
- run:
42+
name: Install RL Wrapper
43+
command: |
44+
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl
45+
- aws-cli/setup:
46+
profile_name: default
47+
role_arn: $AWS_ARN
48+
region: us-east-1
49+
- run: >-
50+
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null
51+
- run:
52+
name: Build binary to scan
53+
command: |
54+
go mod vendor
55+
go install ./...
56+
- run:
57+
name: Run Reversing Labs Wrapper Scanner
58+
command: |
59+
rl-wrapper \
60+
--artifact ${CIRCLE_WORKING_DIRECTORY/#\~/$HOME} \
61+
--name $CIRCLE_PROJECT_REPONAME\
62+
--version $CIRCLE_SHA1\
63+
--repository $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME \
64+
--commit $CIRCLE_SHA1 \
65+
--build-env "circleci" \
66+
--suppress_output
3367
3468
# Invoke jobs via workflows
3569
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
@@ -46,5 +80,10 @@ workflows:
4680
resource-class: "medium"
4781
context:
4882
- static-analysis
83+
"Malware Scanner":
84+
jobs:
85+
- reversing-labs:
86+
context:
87+
- okta-dcp
4988

5089
# VS Code Extension Version: 1.4.0

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Running changelog of releases since `2.0.0-rc.4`
33

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

77
## v5.0.1
88
- Fix unmarshalling error for Log object that does not have additional properties (#484) Thanks [@duytiennguyen-okta]

okta/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func init() {
1515
if err != nil {
1616
fmt.Printf("Create new config should not be error %v", err)
1717
}
18-
configuration.Debug = false
18+
configuration.Debug = true
1919

2020
apiClient = NewAPIClient(configuration)
2121
}
@@ -40,6 +40,7 @@ func sweep() (err error) {
4040
if err != nil {
4141
return
4242
}
43+
fmt.Println("43", apiClient.cfg.Host)
4344
err = sweepGroups()
4445
if err != nil {
4546
return

0 commit comments

Comments
 (0)