Skip to content

Commit

Permalink
ci: Add Snyk security scans
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianKjerstad committed Jan 23, 2023
1 parent 679e62e commit 9ae3717
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,28 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for Python vulnerabilities
working-directory: ./api
uses: snyk/actions/python@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high --file=api/pyproject.toml
args: --severity-threshold=high --file=pyproject.toml

node-security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
working-directory: ./web
run: |
npm install
- name: Run Snyk to check for Node vulnerabilities
uses: snyk/actions/node@master
working-directory: ./web
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --file=web/package.json
args: --file=package.json

test-docs:
name: test-docs
Expand Down

0 comments on commit 9ae3717

Please sign in to comment.