Skip to content

Commit

Permalink
Attempt at making more retries for NVD CVE
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Nov 22, 2023
1 parent 7bfd651 commit 7a6a37f
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 7a6a37f

Please sign in to comment.