Skip to content

Commit 7bb5c43

Browse files
Activate whitesource scan for python pip dependencies (#1082)
1 parent f5d3ff7 commit 7bb5c43

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.cirrus.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ win_vm_definition: &WINDOWS_VM_DEFINITION
3333
type: n1-standard-8
3434
use_ssd: true
3535

36-
build_task:
36+
build_container_definition: &BUILD_CONTAINER_DEFINITION
3737
gke_container:
3838
dockerfile: .cirrus/python-env.Dockerfile
3939
builder_image_project: language-team
@@ -43,6 +43,9 @@ build_task:
4343
namespace: default
4444
cpu: 2
4545
memory: 2G
46+
47+
build_task:
48+
<<: *BUILD_CONTAINER_DEFINITION
4649
env:
4750
GITHUB_TOKEN: ENCRYPTED[!f458126aa9ed2ac526f220c5acb51dd9cc255726b34761a56fc78d4294c11089502a882888cef0ca7dd4085e72e611a5!]
4851
# analysis on next
@@ -76,10 +79,7 @@ build_win_task:
7679
ws_scan_task:
7780
depends_on:
7881
- build
79-
gke_container:
80-
<<: *CONTAINER_DEFINITION
81-
cpu: 2
82-
memory: 2G
82+
<<: *BUILD_CONTAINER_DEFINITION
8383
# run only on master and long-term branches
8484
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*")
8585
env:

wss-unified-agent.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ wss.url=https://saas-eu.whitesourcesoftware.com/agent
1515
forceUpdate=true
1616
checkPolicies=true
1717
forceUpdate.failBuildOnPolicyViolation=true
18+
19+
# Python dependencies https://whitesource.atlassian.net/wiki/spaces/WSK/pages/2446229505/Configuring+the+Unified+Agent+for+Python
20+
python.resolveDependencies = true
21+
22+
python.installVirtualenv = true
23+
24+
python.resolveHierarchyTree = true
25+
26+
python.ignorePipInstallErrors = false
27+
28+
python.resolvePipEditablePackages = true

0 commit comments

Comments
 (0)