Updated to run on a separate workflow every 4 hours.

Signed-off-by: Harry Hogg <hhogg@spotify.com>
This commit is contained in:
Harry Hogg
2021-11-08 11:03:58 +00:00
parent 7205d37a14
commit bd74a61eaa
2 changed files with 23 additions and 5 deletions
@@ -0,0 +1,23 @@
name: 'Snyk Github Issue Sync'
on:
schedule:
- cron: '0 */4 * * *'
jobs:
sync:
steps:
- uses: actions/checkout@v2
- name: Create Snyk report
uses: snyk/actions/node@master
with:
args: >
--yarn-workspaces
--org=backstage-dgh
--strict-out-of-sync=false
--json-file-output=snyk.json
json: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Update Github issues
run: yarn ts-node scripts/snyk-github-issue-sync.ts
-5
View File
@@ -43,14 +43,9 @@ jobs:
--org=backstage-dgh
--strict-out-of-sync=false
--sarif-file-output=snyk.sarif
--json-file-output=snyk.json
json: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Upload Snyk report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif
- name: Update Github issues
run: yarn ts-node scripts/snyk-github-issue-sync.ts