Skip to content

Conversation

@SOOS-MMalony
Copy link
Contributor

DO NOT MERGE

Using to setup demos with thousands of projects.

Will find all SBOMs in a folder and create project for each SBOM and scan them in parallel based on scanBatchSize param.

Project names based on SBOM filenames.

@SOOS-MMalony
Copy link
Contributor Author

Pull branch.

npm run build

Batch file to run:

set "SOOS_CLIENT_ID=XXXXX"
set "SOOS_API_KEY=XXXXX"
set "SBOM_FOLDER=C:\Temp\sbom-poc\sboms-main"
set "SCAN_BATCH_SIZE=20"
set "LOG_LEVEL=warn"
SET "SKIP_WAIT=true"
SET "API_URL=https://api.soos.io/api/"

node C:\Code\soos-sbom\bin\index.js --clientId=%SOOS_CLIENT_ID% --apiKey=%SOOS_API_KEY% --apiURL="%API_URL%" --logLevel=%LOG_LEVEL% --skipWait=%SKIP_WAIT% --scanBatchSize=%SCAN_BATCH_SIZE% %SBOM_FOLDER%

@SOOS-GSteen
Copy link
Contributor

SOOS-GSteen commented Sep 6, 2024

batch for branch - pull branch, build locally, run

cls
set "SOOS_CLIENT_ID=xxx"
set "SOOS_API_KEY=xxxx"
set "SBOM_FOLDER=C:\Temp\sbom-poc\sboms-volume"
set "SCAN_BATCH_SIZE=20"
set "LOG_LEVEL=warn"
SET "SKIP_WAIT=false"
SET "API_URL=https://dev-api.soos.io/api/"
set "MAX_FILES=50000"
set "USE_BRANCHES=false"

node C:\Code\soos-sbom\bin\index.js --useBranches=%USE_BRANCHES% --maxFiles=%MAX_FILES% --clientId=%SOOS_CLIENT_ID% --apiKey=%SOOS_API_KEY% --apiURL="%API_URL%" --logLevel=%LOG_LEVEL% --skipWait=%SKIP_WAIT% --scanBatchSize=%SCAN_BATCH_SIZE% %SBOM_FOLDER%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants