2020-09-05 12:43:05 +00:00
|
|
|
name: Snyk
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2022-10-09 08:00:56 +00:00
|
|
|
# Weekly
|
2023-10-01 04:05:08 +00:00
|
|
|
- cron: "0 0 * * 0"
|
2022-05-17 00:35:52 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-10-01 04:05:08 +00:00
|
|
|
- "dependabot/github_actions/github/codeql-action**"
|
2020-09-05 12:43:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
security:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-01 04:48:01 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-01 04:05:08 +00:00
|
|
|
- name: Install Bun
|
|
|
|
uses: oven-sh/setup-bun@v1
|
2020-09-09 05:23:11 +00:00
|
|
|
- name: Install Dependencies
|
2023-10-01 04:05:08 +00:00
|
|
|
run: bun 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
|
2023-12-13 15:52:54 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
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
|