Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V9.0.1 #761

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 3 additions & 59 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,59 +11,6 @@ orbs:
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
reversing-labs:
steps:
- checkout

- run: dotnet --version

- run:
name: build Binary to scan
command: dotnet build ./src/Okta.Sdk.sln

// Necessary to Install rl wrapper
- run:
name: Install Python
command: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip install --upgrade pip

// Download the scanner from Okta Security
- run:
name: Download Reverse Labs Scanner
command: |
curl https://dso-resources.oktasecurity.com/scanner \
-H "x-api-key: $DSO_RLSECURE_TOKEN" \
--output rl_wrapper-0.0.2+35ababa-py3-none-any.whl
// Install the wrapper that was downloaded
- run:
name: Install RL Wrapper
command: |
pip install ./rl_wrapper-0.0.2+35ababa-py3-none-any.whl

// Setup the AWS profile
- aws-cli/setup:
profile_name: default
role_arn: $AWS_ARN
region: us-east-1

// Get the credentials and save to env
- run: >-
eval "$(aws configure export-credentials --profile default --format env)" 2> /dev/null

// Run the wrapper, do not change anything here
- 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
build:
description: Run tests and build
executor:
Expand All @@ -85,7 +32,9 @@ jobs:
- .git
- when:
condition:
equal: [ "<<pipeline.git.branch>>", "master" ]
or:
- equal: [ "<<pipeline.git.branch>>", "master" ]
- equal: [ "<<pipeline.git.branch>>", "v9.0.1" ]
steps:
- general-platform-helpers/step-artifacts-prepare-and-upload-windows:
files-to-upload: "artifacts"
Expand Down Expand Up @@ -122,10 +71,5 @@ workflows:
context:
- static-analysis
name: "Scan with Semgrep"
"Malware Scanner":
jobs:
- reversing-labs:
context:
- static-analysis

# VS Code Extension Version: 1.4.0