forked from snyk-labs/nodejs-goof
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (36 loc) · 1.22 KB
/
open-source-test.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
33
34
35
36
37
38
39
40
41
42
name: Snyk Open Source Test
on:
workflow_dispatch:
workflow_call:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 2 * * 1-5'
push:
branches:
- 'main'
jobs:
open-source-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Test Open Source Dependencies with Snyk
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test
# - name: Upload SBOM
# uses: actions/upload-artifact@v3
# with:
# name: sbom-cyclonedx
# path: sbom-cyclonedx.json
# retention-days: 5