Upgrade failing nvd-clojure-tool #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 Topsector Logistiek | |
# SPDX-FileContributor: Joost Diepenmaat <joost@jomco.nl> | |
# SPDX-FileContributor: Remco van 't Veer <remco@jomco.nl> | |
# | |
# SPDX-License-Identifier: AGPL-3.0-or-later | |
name: Check dependency vulnerabilities | |
on: | |
push: | |
schedule: | |
- cron: '0 1 * * 1,2,3,4,5' # every workday | |
jobs: | |
"NVD-check": | |
runs-on: ubuntu-latest | |
steps: | |
# NVD data can change every day, so we use a cache key based on today's date | |
- name: Get current date | |
id: date | |
run: echo "date=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: "~/.m2" | |
key: "nvd-${{ steps.date.outputs.date }}" | |
restore-keys: "nvd-" | |
- name: Install clj runtime | |
run: | | |
.github/workflows/install-binaries.sh | |
echo "${PWD}/bin" >> $GITHUB_PATH | |
- name: Install NVD clojure | |
run: .github/workflows/install-nvd-clojure-tool.sh | |
- name: Check that NVD Secret is set | |
env: | |
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }} | |
if: ${{ env.NVD_API_TOKEN == '' }} | |
run: echo "NVD_API_TOKEN secret is empty"; exit 1 | |
- name: Check clojure dependencies with NVD | |
env: | |
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }} | |
run: clojure -J-Dclojure.main.report=stderr -Tnvd nvd.task/check :config-filename '".nvd-config.edn"' :classpath "\"$(clojure -Spath)\"" |