-
Notifications
You must be signed in to change notification settings - Fork 81
45 lines (45 loc) · 1.36 KB
/
snyk.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Snyk
on:
release:
types: [published]
pull_request:
jobs:
security:
name: Run Snyk
runs-on: ubuntu-20.04
env:
LANG: C.UTF-8
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Node dependencies
run: npm install --prefix portal_frontend
- name: Run Snyk to check for vulnerabilities in Node.js
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor --file=portal_frontend/package.json --package-manager=npm --project-name="portal_frontend"
- name: Setup python-version
uses: actions/setup-python@v4
with:
python-version: "3.8"
architecture: "x64"
- name: Install Python dependencies
run: |
pip install pipenv
pipenv install --dev --system
- name: Generate requirements
run: pip freeze > requirements.txt
- name: Run Snyk to check for vulnerabilities in Python
uses: snyk/actions/python-3.8@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor --file=requirements.txt --package-manager=pip --project-name="portal"