Skip to content

Commit

Permalink
Check for NVD secret
Browse files Browse the repository at this point in the history
  • Loading branch information
joodie committed Jan 29, 2024
1 parent ecb79a8 commit c92174f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
jobs:
checks:
runs-on: ubuntu-latest
env:
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -34,10 +32,18 @@ jobs:
- name: Run linters
run: bin/clojure -M:clj-kondo --lint src test

- name: Check NVD Secret is configured
env:
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }}
if: ${{ env.NVD_API_TOKEN == '' }}
run: echo "NVD_API_TOKEN secret is empty"; exit 1

- name: Install NVD clojure
run: bin/clojure -Ttools install nvd-clojure/nvd-clojure '{:mvn/version "RELEASE"}' :as nvd;

- name: Check NVD
env:
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }}
run: bin/clojure -J-Dclojure.main.report=stderr -Tnvd nvd.task/check :classpath \""$(bin/clojure -Spath)\""

create_release:
Expand Down

0 comments on commit c92174f

Please sign in to comment.