-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (29 loc) · 932 Bytes
/
daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}