hexo-yam/.github/workflows/snyk.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

2020-09-05 12:43:05 +00:00
name: Snyk
on:
schedule:
# Every day
- cron: '0 0 * * *'
2022-05-17 00:35:52 +00:00
pull_request:
branches:
- 'dependabot/github_actions/github/codeql-action**'
2020-09-05 12:43:05 +00:00
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
2022-05-17 00:40:28 +00:00
- name: Use Node.js 16.x
uses: actions/setup-node@v3.2.0
with:
2022-05-17 00:40:28 +00:00
node-version: '16.x'
- name: Install Dependencies
run: npm install
2022-05-13 01:00:45 +00:00
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: test
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
2022-05-13 01:00:45 +00:00
with:
sarif_file: snyk.sarif
2022-05-13 01:27:05 +00:00
- name: Monitor for vulnerabilities
2020-09-05 12:43:05 +00:00
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor