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
14 changes: 13 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,11 @@ jobs:
sudo yum install yarn -y
export PATH=$PATH:/opt/gradle/gradle-6.7/bin
gradle -v; mvn -v ; npm -v; yarn -v
# This step is needed to avoid build failures in few plugins
# No ETA on when this dependency can be removed
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