@@ -4,12 +4,13 @@ version: 2.1
4
4
5
5
orbs :
6
6
platform-orb : okta/general-platform-helpers@1.9
7
+ python : circleci/python@2.0.3
8
+ aws-cli : circleci/aws-cli@5.1
7
9
8
10
# Define a job to be invoked later in a workflow.
9
11
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
10
12
jobs :
11
-
12
- test-v2 :
13
+ test-v4 :
13
14
docker :
14
15
- image : cimg/go:1.19.4
15
16
steps :
@@ -20,16 +21,49 @@ jobs:
20
21
name : " test stage"
21
22
command : make test
22
23
23
- test-v4 :
24
+ reversing-labs :
24
25
docker :
25
- - image : cimg/go:1.19.4
26
+ - image : cimg/go:1.21.13
26
27
steps :
27
- - checkout
28
- - run : go version
29
- - platform-orb/step-load-dependencies
28
+ - checkout
30
29
- 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
33
67
34
68
# Invoke jobs via workflows
35
69
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
@@ -46,5 +80,10 @@ workflows:
46
80
resource-class : " medium"
47
81
context :
48
82
- static-analysis
83
+ " Malware Scanner " :
84
+ jobs :
85
+ - reversing-labs :
86
+ context :
87
+ - okta-dcp
49
88
50
89
# VS Code Extension Version: 1.4.0
0 commit comments