2020-09-05 12:43:05 +00:00
|
|
|
name: Snyk
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Every day
|
2020-09-05 12:47:23 +00:00
|
|
|
- cron: '0 0 * * *'
|
2020-09-05 12:43:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
security:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-12 05:09:55 +00:00
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-04-25 08:47:04 +00:00
|
|
|
- name: Use Node.js 14.x
|
2021-10-16 09:29:53 +00:00
|
|
|
uses: actions/setup-node@v2.4.1
|
2020-09-09 05:23:11 +00:00
|
|
|
with:
|
2021-04-25 08:47:04 +00:00
|
|
|
node-version: '14.x'
|
2020-09-09 05:23:11 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
2020-09-05 12:43:05 +00:00
|
|
|
- name: Run Snyk to check for vulnerabilities
|
|
|
|
uses: snyk/actions/node@master
|
|
|
|
env:
|
|
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
|
|
with:
|
|
|
|
command: monitor
|