Skip to content

Check for vulnerabilities daily #590

Check for vulnerabilities daily

Check for vulnerabilities daily #590

Workflow file for this run

name: Check for vulnerabilities daily
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * *
permissions:
contents: read
issues: write
jobs:
get-supported-versions:
runs-on: ubuntu-latest
outputs:
# JSON array of versions to check, e.g. '["v14.x","v16.x","v18.x","v19.x","main"]'
matrix: ${{ steps.fetch-versions.outputs.matrix }}
steps:
- id: fetch-versions
run: echo "matrix=$(npx -p @pkgjs/nv nv ls supported | jq -c -n '[inputs.versionName + ".x"] | . += ["main"]')" >> $GITHUB_OUTPUT
check-vulns:
name: Check vulnerabilities on ${{ matrix.nodejsStream }}
needs: get-supported-versions
secrets: inherit
strategy:
fail-fast: false
max-parallel: 1
matrix:
nodejsStream: ${{ fromJSON(needs.get-supported-versions.outputs.matrix) }}
uses: ./.github/workflows/check-vulns.yml
with:
nodejsStream: ${{ matrix.nodejsStream }}