Skip to content
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
60 changes: 60 additions & 0 deletions .github/workflows/mend-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Mend (WhiteSource) Scan

on:
workflow_dispatch:
push:
pull_request:

jobs:
mend-scan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v4

- name: Export toml as requirements
shell: bash
run: uv pip compile pyproject.toml -o requirements.txt

- name: Checkout config file
uses: actions/checkout@v4
with:
repository: ${{ secrets.BLAZE_UTILS_REPO }}
ref: master
path: whitesourceScanFile
sparse-checkout: |
whiteSource/wss-unified-agent-with-policies.config
token: ${{ secrets.BLAZE_UTILS_TOKEN }}

- name: Setup Java (required for WhiteSource agent)
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Download WhiteSource Unified Agent
shell: bash
run: |
curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss_agent.sh
chmod +x wss_agent.sh
ls -ltr

- name: Run WhiteSource Scan
shell: bash
env:
WHITESOURCE_TOKEN: ${{ secrets.WHITESOURCE_API_KEY }}
run: |
./wss_agent.sh \
-apiKey ${WHITESOURCE_TOKEN} \
-project perfecto-mcp \
-scanComment "${{ github.ref_name }}" \
-projectPerFolder False \
-gradle.aggregateModules True \
-product Perfecto \
-c whitesourceScanFile/whiteSource/wss-unified-agent-with-policies.config \
-wss.url https://saas-eu.whitesourcesoftware.com/agent