Skip to content
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

Include publish to maven local for the whitesource scan to mitigate build failures in the plugin repos. #3

Merged
merged 12 commits into from
Apr 22, 2021
12 changes: 11 additions & 1 deletion .github/workflows/check-vulnerability-whitesource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [11]
java: [14]
go-version: [1.14]
steps:
- uses: actions/checkout@v1
Expand All @@ -44,6 +44,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_MAVEN_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_MAVEN_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Vulnerability Scan
id: vulnerability_scan
env:
Expand All @@ -62,6 +69,9 @@ jobs:
sudo yum install yarn -y
export PATH=$PATH:/opt/gradle/gradle-6.7/bin
gradle -v; mvn -v ; npm -v; yarn -v
git clone https://github.com/opensearch-project/OpenSearch.git
cd OpenSearch
gradle publishToMavenLocal; cd ..
sreekarjami marked this conversation as resolved.
Show resolved Hide resolved
./wss-scan.sh
echo ::set-output name=mail_content::$(cat output.md)
cat whitesource/*/*
Expand Down
2 changes: 1 addition & 1 deletion standalone-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=alerting,alerting-dashboards-plugin,anomaly-detection,anomaly-detection-dashboards-plugin,common-utils,dashboards-notebooks,dashboards-reports,dashboards-visualizations,data-prepper,index-management,index-management-dashboards-plugin,job-scheduler,k-NN,opensearch-cli,performance-analyzer,performance-analyzer-rca,perftop,sql,trace-analytics
gitRepos=alerting,alerting-dashboards-plugin,anomaly-detection,anomaly-detection-dashboards-plugin,asynchronous-search,common-utils,dashboards-notebooks,dashboards-reports,dashboards-visualizations,data-prepper,index-management,index-management-dashboards-plugin,job-scheduler,k-NN,opensearch-cli,performance-analyzer,performance-analyzer-rca,perftop,security,security-dashboards-plugin,sql,trace-analytics
sreekarjami marked this conversation as resolved.
Show resolved Hide resolved