From 7a6a37fad5d526d5d80125996e31b5385a9f78f4 Mon Sep 17 00:00:00 2001 From: maddie480 <52103563+maddie480@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:26:46 +0100 Subject: [PATCH] Attempt at making more retries for NVD CVE --- .github/workflows/maven.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index bbc9345..d6ec88a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -17,13 +17,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 21 - uses: actions/setup-java@v3 - with: - java-version: '21' - distribution: 'temurin' - cache: maven - - name: Check for tabs run: | find "(" -name "*.java" -or -name "*.xml" -or -name "*.yaml" -or -name "*.yml" -or -name "*.txt" -or -name "*.md" ")" -exec grep -Pl "\t" {} \; > matches.txt @@ -39,6 +32,26 @@ jobs: find "(" -name "*.java" -or -name "*.xml" -or -name "*.yaml" -or -name "*.yml" -or -name "*.txt" -or -name "*.md" ")" -exec grep -Pl " $" {} \; > matches.txt grep "" matches.txt && exit 1 || echo "No trailing space found!" + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Build open-vulnerability-clients fork + run: | + git clone https://github.com/maddie480/Open-Vulnerability-Project.git + cd Open-Vulnerability-Project/open-vulnerability-clients + ../gradlew publishToMavenLocal --info + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - name: Build with Maven env: NVD_API_KEY: ${{ secrets.NVD_API_KEY }}