Skip to content

Commit

Permalink
Moved nvdapikey to env
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau committed Nov 25, 2024
1 parent c9288a5 commit 578706a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
distribution: 'temurin'
java-version: '21'
server-id: 'nvd'
server-password: ${{ secrets.NVD_API_KEY }}
server-password: NVD_API_KEY
cache: 'maven'

- name: Setup Graphviz
Expand Down Expand Up @@ -45,6 +45,8 @@ jobs:
- name: Run OWASP dependency-check (only on dev)
run: mvn -q org.owasp:dependency-check-maven:check
if: ${{ github.ref == 'refs/heads/dev' }}
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}

- name: Set up for Maven Central deploy (master branch only)
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down

0 comments on commit 578706a

Please sign in to comment.