chore(Snyk): Added workflow for outputting the Snyk report as JSON
Signed-off-by: Harry Hogg <hhogg@spotify.com> Co-Authored-By: Himanshu Mishra <himanshu@orkohunter.net
This commit is contained in:
committed by
Himanshu Mishra
parent
18d73ecc9d
commit
48bd2e2be2
@@ -0,0 +1,27 @@
|
||||
name: Create and Update Github Issues from Snyk report
|
||||
|
||||
on:
|
||||
[push, pull_request]
|
||||
# workflow_dispatch:
|
||||
# pull_request:
|
||||
# schedule:
|
||||
# - cron: '0 */4 * * *' # every 4 hours
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Run Snyk to check for vulnerabilities
|
||||
uses: snyk/actions/node@master
|
||||
continue-on-error:
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
with:
|
||||
args: --yarn-workspaces --strict-out-of-sync=false
|
||||
json: true
|
||||
|
||||
- name: Run the Snyk Github Issue command
|
||||
run: yarn ts-node scripts/snyk-github-issue-sync.ts
|
||||
Reference in New Issue
Block a user