File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Mend (WhiteSource) Scan
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ pull_request :
7+
8+ jobs :
9+ mend-scan :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup uv
17+ uses : astral-sh/setup-uv@v4
18+
19+ - name : Export toml as requirements
20+ shell : bash
21+ run : uv pip compile pyproject.toml -o requirements.txt
22+
23+ - name : Checkout config file
24+ uses : actions/checkout@v4
25+ with :
26+ repository : ${{ secrets.BLAZE_UTILS_REPO }}
27+ ref : master
28+ path : whitesourceScanFile
29+ sparse-checkout : |
30+ whiteSource/wss-unified-agent-with-policies.config
31+ token : ${{ secrets.BLAZE_UTILS_TOKEN }}
32+
33+ - name : Setup Java (required for WhiteSource agent)
34+ uses : actions/setup-java@v4
35+ with :
36+ distribution : ' temurin'
37+ java-version : ' 17'
38+
39+ - name : Download WhiteSource Unified Agent
40+ shell : bash
41+ run : |
42+ curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss_agent.sh
43+ chmod +x wss_agent.sh
44+ ls -ltr
45+
46+ - name : Run WhiteSource Scan
47+ shell : bash
48+ env :
49+ WHITESOURCE_TOKEN : ${{ secrets.WHITESOURCE_API_KEY }}
50+ run : |
51+ ./wss_agent.sh \
52+ -apiKey ${WHITESOURCE_TOKEN} \
53+ -project perfecto-mcp \
54+ -scanComment "${{ github.ref_name }}" \
55+ -projectPerFolder False \
56+ -gradle.aggregateModules True \
57+ -product Perfecto \
58+ -c whitesourceScanFile/whiteSource/wss-unified-agent-with-policies.config \
59+ -wss.url https://saas-eu.whitesourcesoftware.com/agent
60+
You can’t perform that action at this time.
0 commit comments