Skip to content

Commit 5e2bb56

Browse files
author
Jeremi Do Dinh
authored
PYSCAN-39 Enable Mend scan (#35)
1 parent daf9e8f commit 5e2bb56

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.cirrus.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@ poetry_cache_template: &POETRY_CACHE
4444
- jfrog poetry-config --server-id-resolve repox --repo-resolve sonarsource-pypi
4545
- jfrog poetry install --build-name="$CIRRUS_REPO_NAME" --build-number="$CI_BUILD_NUMBER"
4646

47+
mend_scan_task:
48+
<<: *POETRY_TEMPLATE
49+
depends_on:
50+
- build
51+
# run only on master and long-living branches
52+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*")
53+
eks_container:
54+
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j18-latest
55+
region: eu-central-1
56+
cluster_name: ${CIRRUS_CLUSTER_NAME}
57+
namespace: default
58+
cpu: 4
59+
memory: 2G
60+
env:
61+
WS_APIKEY: VAULT[development/kv/data/mend data.apikey]
62+
mend_script:
63+
- source cirrus-env QA
64+
- source ws_scan.sh
65+
allow_failures: "true"
66+
always:
67+
ws_scan_artifacts:
68+
path: "whitesource/**/*"
69+
4770
formatting_task:
4871
<<: *POETRY_TEMPLATE
4972
alias: formatting

wss-unified-agent.config

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Mend documentation: https://docs.mend.io/en-US/bundle/unified_agent/page/getting_started_with_the_unified_agent.html
2+
3+
excludes=**/*sources.jar **/*javadoc.jar **/its/plugin/projects/** eslint-bridge/tests/**
4+
fileSystemScan=False
5+
resolveAllDependencies=False
6+
7+
wss.url=https://saas-eu.whitesourcesoftware.com/agent
8+
9+
forceUpdate=true
10+
checkPolicies=true
11+
forceUpdate.failBuildOnPolicyViolation=true
12+
13+
# Python dependencies https://docs.mend.io/bundle/wsk/page/configuring_the_unified_agent_for_python.html
14+
15+
python.resolveDependencies=true
16+
17+
python.ignoreSourceFiles=false
18+
19+
python.installVirtualenv=true
20+
21+
python.resolveHierarchyTree=true
22+
23+
python.ignorePipInstallErrors=false
24+
25+
python.resolvePipEditablePackages=true
26+
27+
python.runPoetryPreStep=true
28+
29+
python.includePoetryDevDependencies=true

0 commit comments

Comments
 (0)