From a9de36bb8fd8cdb5687bb42cc5edbcbb2cc9d54f Mon Sep 17 00:00:00 2001 From: ondrejrozsypal Date: Wed, 8 Jan 2020 14:19:00 +0100 Subject: [PATCH 1/4] add cci --- muskrat/.circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 muskrat/.circleci/config.yml diff --git a/muskrat/.circleci/config.yml b/muskrat/.circleci/config.yml new file mode 100644 index 0000000..d20caa5 --- /dev/null +++ b/muskrat/.circleci/config.yml @@ -0,0 +1,46 @@ +version: 2.1 + +executors: + java: + description: "A regular executor based on openjdk image" + docker: + - image: circleci/openjdk:8-jdk + +jobs: + whitesource-scan: + executor: java + + steps: + - checkout + + - run: + name: Install pip + command: | + sudo apt-get update + sudo apt-get install -y python-pip + - run: + name: Download latest WhiteSource Unified Agent + command: curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar + - run: + name: Run WhiteSource scan + command: java -jar wss-unified-agent.jar -d ~/project -c ~/project/wss-unified-agent.config -apiKey ${API_KEY} + - store_artifacts: + path: ~/project/whitesource + +workflows: + version: 2 + commit: + jobs: + - whitesource-scan: + context: whitesource + security-scan: + triggers: + - schedule: + cron: "0 1 * * 0" + filters: + branches: + only: + master + jobs: + - whitesource-scan: + context: whitesource From aa30f4ed32a53504ac865af5e6f59cbc9cf0cab5 Mon Sep 17 00:00:00 2001 From: ondrejrozsypal Date: Wed, 8 Jan 2020 14:19:57 +0100 Subject: [PATCH 2/4] add ws config --- wss-unified-agent.config | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 wss-unified-agent.config diff --git a/wss-unified-agent.config b/wss-unified-agent.config new file mode 100644 index 0000000..683c4bf --- /dev/null +++ b/wss-unified-agent.config @@ -0,0 +1,45 @@ +############################################################### +# WhiteSource Unified-Agent configuration file +############################################################### +# GENERAL SCAN MODE: Files and Package Managers +############################################################### +# Organization vitals +###################### + +projectToken=38bb21f384f446e9b914ad3c816abcdbddce46a489fb4560a0caee42f661fef0 + +# Change the below URL to your WhiteSource server. +# Use the 'WhiteSource Server URL' which can be retrieved +# from your 'Profile' page on the 'Server URLs' panel. +# Then, add the '/agent' path to it. +wss.url=https://app.whitesourcesoftware.com/agent + +############ +# Policies # +############ +checkPolicies=true +forceCheckAllDependencies=false +forceUpdate=false +forceUpdate.failBuildOnPolicyViolation=false +#updateInventory=false + +########### +# General # +########### +#log.level=debug + +######################################## +# Package Manager Dependency resolvers # +######################################## + + +########################################################################################### +# Includes/Excludes Glob patterns - Please use only one exclude line and one include line # +########################################################################################### +includes=**/*.zip **/*.tar.gz **/*.egg **/*.whl **/*.py + +#Exclude file extensions or specific directories by adding **/*. or **//** +excludes=**/*sources.jar **/*javadoc.jar + +case.sensitive.glob=false +followSymbolicLinks=true From dc143fb0e67c9eac9e391ef11b6768d6d5f6d6c5 Mon Sep 17 00:00:00 2001 From: ondrejrozsypal Date: Wed, 8 Jan 2020 14:34:35 +0100 Subject: [PATCH 3/4] move cci config --- {muskrat/.circleci => .circleci}/config.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {muskrat/.circleci => .circleci}/config.yml (100%) diff --git a/muskrat/.circleci/config.yml b/.circleci/config.yml similarity index 100% rename from muskrat/.circleci/config.yml rename to .circleci/config.yml From e42ecf8b610c23b9518cd9855281e7439f83de70 Mon Sep 17 00:00:00 2001 From: ondrejrozsypal Date: Wed, 8 Jan 2020 14:51:26 +0100 Subject: [PATCH 4/4] update ws config for virutalenv --- wss-unified-agent.config | 1 + 1 file changed, 1 insertion(+) diff --git a/wss-unified-agent.config b/wss-unified-agent.config index 683c4bf..f246f27 100644 --- a/wss-unified-agent.config +++ b/wss-unified-agent.config @@ -31,6 +31,7 @@ forceUpdate.failBuildOnPolicyViolation=false ######################################## # Package Manager Dependency resolvers # ######################################## +python.installVirtualenv=true ###########################################################################################