@@ -14,18 +14,18 @@ jobs:
1414 build :
1515 executor : dotnet-executor
1616 steps :
17- - checkout
1817 - run :
19- name : Check dotnet version
20- command : dotnet --version
21- - run :
22- name : Clone https version (since git ssh may not be available)
18+ name : Manual HTTPS checkout (avoid SSH)
2319 command : |
24- rm -rf .git
25- git init
26- git remote add origin https://github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git
27- git fetch origin
28- git checkout -b ${CIRCLE_BRANCH} origin/${CIRCLE_BRANCH}
20+ git --version
21+ rm -rf .git || true
22+ git init .
23+ git remote add origin https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
24+ git fetch --depth=1 origin $CIRCLE_SHA1
25+ git checkout --force $CIRCLE_SHA1
26+ - run :
27+ name : dotnet version
28+ command : dotnet --version
2929 - run :
3030 name : Restore dependencies
3131 command : |
@@ -44,30 +44,47 @@ jobs:
4444 reversing-labs :
4545 executor : dotnet-executor
4646 steps :
47- - attach_workspace :
48- at : .
4947 - run :
50- name : Install Python and dependencies
48+ name : Manual HTTPS checkout (avoid SSH)
49+ command : |
50+ git --version
51+ rm -rf .git || true
52+ git init .
53+ git remote add origin https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
54+ git fetch --depth=1 origin $CIRCLE_SHA1
55+ git checkout --force $CIRCLE_SHA1
56+ - run : dotnet --version
57+ - run :
58+ name : build Binary to scan
59+ command : dotnet build ./Okta.Xamarin/Okta.Xamarin.sln
60+ # Necessary to Install rl wrapper
61+ - run :
62+ name : Install Python
5163 command : |
5264 apt-get update
5365 apt-get install -y curl python3 python3-pip unzip
5466 pip3 install --upgrade pip
67+ # Download the scanner from Okta Security
5568 - run :
5669 name : Download Reverse Labs Scanner
5770 command : |
5871 curl https://dso-resources.oktasecurity.com/scanner \
5972 -H "x-api-key: $DSO_RLSECURE_TOKEN" \
6073 --output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
74+ # Install the wrapper that was downloaded
6175 - run :
6276 name : Install RL Wrapper
6377 command : |
6478 pip3 install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl
79+ # Setup the AWS profile
6580 - aws-cli/setup :
6681 profile_name : default
6782 role_arn : $AWS_ARN
6883 region : us-east-1
84+ # Get the credentials and save to env
6985 - run : >-
7086 eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null
87+ # Run the wrapper, do not change anything here
7188 - run :
7289 name : Run Reversing Labs Wrapper Scanner
7390 command : |
0 commit comments