Skip to content

Commit

Permalink
add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
edtaupier committed May 2, 2024
1 parent 8cd9b52 commit 14f3b7b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.idea
38 changes: 38 additions & 0 deletions scripts/whitesource/agent.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#skyux-spa Whitesource configuration file
#Whitesource Config File Documentation
#https://whitesource.atlassian.net/wiki/spaces/WD/pages/489160834/Unified+Agent+Configuration+File+Parameters
checkPolicies=false
forceCheckAllDependencies=false
forceUpdate=false
forceUpdate.failBuildOnPolicyViolation=false
offline=false
wss.url=https://app.whitesourcesoftware.com/agent
npm.resolveDependencies=true
npm.identifyByNameAndVersion=true
npm.runPreStep=false
npm.includeDevDependencies=true
bower.resolveDependencies=false
nuget.resolveDependencies=false
python.resolveDependencies=false
maven.resolveDependencies=false
gradle.resolveDependencies=false
paket.resolveDependencies=false
go.resolveDependencies=false
ruby.resolveDependencies=true
ruby.identifyByNameAndVersion=true
ruby.includeDevDependencies=true
ruby.runBundleInstall=true
sbt.resolveDependencies=false
php.resolveDependencies=false
html.resolveDependencies=true
html.identifyByNameAndVersion=true
html.includeDevDependencies=true
cocoapods.resolveDependencies=false
r.resolveDependencies=false
cargo.resolveDependencies=false
bazel.resolveDependencies=false
projectName=adminifi
productName=foundry
includes=**/*.js **/*.rb **/*.html **/*.html.erb
case.sensitive.glob=false
followSymbolicLinks=true
18 changes: 18 additions & 0 deletions scripts/whitesource/mend_scan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

if [[ -z "$WHITESOURCE_API_KEY" ]]; then
echo "WHITESOURCE_API_KEY has not been set, please set it up in the project environment variables since its mandatory"
exit 1
fi

echo apiKey="${WHITESOURCE_API_KEY}" >>scripts/whitesource/agent.config
echo scanComment="${BRANCH}-${GITHUB_RUN_ID}" >>scripts/whitesource/agent.config

if [[ -f install_commands.sh ]]; then
echo "Executing file: install_commands.sh"
echo ""
chmod +x install_commands.sh
./install_commands.sh
fi

bash <(curl -s -L https://raw.githubusercontent.com/whitesource/unified-agent-distribution/master/standAlone/wss_agent_orb.sh) -apiKey "$WHITESOURCE_API_KEY" -c scripts/whitesource/agent.config -d .

0 comments on commit 14f3b7b

Please sign in to comment.