Skip to content

Add more repos to offline whitesource scan #1438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tools/vulnerability-scan/wss-scan.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
baseDirPath=$(pwd)
gitBasePath=https://github.com/opensearch-project/
gitRepos=OpenSearch,OpenSearch-Dashboards,alerting,alerting-dashboards-plugin,anomaly-detection,anomaly-detection-dashboards-plugin,asynchronous-search,common-utils,cross-cluster-replication,dashboards-reports,dashboards-visualizations,data-prepper,index-management,index-management-dashboards-plugin,job-scheduler,k-NN,opensearch-java,opensearch-js,opensearch-py,opensearch-dsl-py,performance-analyzer,perftop,security,security-dashboards-plugin,sql,observability
gitRepos=OpenSearch,OpenSearch-Dashboards,alerting,alerting-dashboards-plugin,anomaly-detection,anomaly-detection-dashboards-plugin,asynchronous-search,common-utils,cross-cluster-replication,dashboards-reports,dashboards-visualizations,data-prepper,index-management,index-management-dashboards-plugin,job-scheduler,k-NN,opensearch-java,opensearch-js,opensearch-py,opensearch-dsl-py,performance-analyzer,performance-analyzer-rca,perftop,security,security-dashboards-plugin,sql,observability,opensearch-build
6 changes: 3 additions & 3 deletions tools/vulnerability-scan/wss-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set -e

# Generate temporary `settings.gradle` file based on the name in `build.gradle`
function generate_settings_gradle() {
settings_gradle_content=`cat build.gradle | grep name | grep -i $repo | head -n 1 | sed 's/name/rootProject.name =/g' | awk '{$1=$1};1'`
settings_gradle_content="rootProject.name = 'opensearch-$1'"
echo $settings_gradle_content > settings.gradle
cat settings.gradle
}
Expand Down Expand Up @@ -89,7 +89,7 @@ do
if [ ! -e "settings.gradle" ]
then
echo "settings.gradle not exist in $repo, create one based on build.gradle name"
generate_settings_gradle
generate_settings_gradle $repo
else
echo "settings.gradle exist $repo"
fi
Expand All @@ -98,7 +98,7 @@ do
if [ ${repo} == "observability" ]
then
cd $repo_path/opensearch-observability
generate_settings_gradle
generate_settings_gradle $repo
else
echo "build.gradle for $repo not exist, either dashboards repo or missing necessary files"
fi
Expand Down