Skip to content

Commit 175a4c3

Browse files
authored
Merge pull request #517 from rstudio/mm-snyk
Update for Snyk
2 parents a3a0a00 + b75e305 commit 175a4c3

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/snyk.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
pip install -e '.[test]'
41+
pip install -r requirements.txt
4242
4343
- uses: snyk/actions/setup@master
4444

45-
- name: Run Snyk (setup.py)
46-
run: snyk monitor --file="setup.py" --package-manager=pip --project-name="setup.py" --org=${{ env.SNYK_ORG }}
47-
4845
- name: Run Snyk (requirements.txt)
4946
run: snyk monitor --file="requirements.txt" --package-manager=pip --project-name="requirements.txt" --org=${{ env.SNYK_ORG }}

requirements.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file is just for Snyk scanning,
2+
# because it doesn't understand pyproject.toml
3+
# unless it uses Poetry.
4+
# https://github.com/snyk/snyk-python-plugin/issues/147
5+
6+
# build-system.requires
7+
setuptools>=61
8+
setuptools_scm[toml]>=3.4
9+
wheel
10+
11+
# project.dependencies
12+
six>=1.14.0
13+
click>=7.0.0
14+
pip>=10.0.0
15+
semver>=2.0.0,<3.0.0
16+
pyjwt>=2.4.0
17+
black==22.3.0
18+
19+
# project.optional-dependencies.test
20+
coverage
21+
flake8-pyproject
22+
flake8
23+
httpretty
24+
ipykernel
25+
mypy
26+
nbconvert
27+
pytest-cov
28+
pytest-mypy
29+
pytest
30+
setuptools_scm[toml]
31+
twine
32+
types-click
33+
types-Flask
34+
types-six

0 commit comments

Comments
 (0)