File tree 3 files changed +47
-12
lines changed
3 files changed +47
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : snyk
2
+ on :
3
+ schedule :
4
+ - cron : " 0 10 * * 1" # Monday @ 10am UTC
5
+ workflow_dispatch :
6
+
7
+ env :
8
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
9
+ SNYK_ORG : rstudio-connect
10
+ SNYK_PROJECT : rsconnect-python
11
+
12
+ jobs :
13
+ python-dependencies :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - name : Run Snyk on dependencies
18
+ uses : snyk/actions/python@master
19
+ with :
20
+ command : monitor
21
+ args : --file=setup.py --print-deps --project-name=${{ env.SNYK_PROJECT }} --org=${{ env.SNYK_ORG }}
22
+ python-code :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@master
26
+ - name : Run Snyk static analysis
27
+ uses : snyk/actions/python@master
28
+ with :
29
+ command : code test
30
+ args : --project-name=${{ env.SNYK_PROJECT }} --org=${{ env.SNYK_ORG }}
Original file line number Diff line number Diff line change @@ -15,17 +15,6 @@ project_urls =
15
15
Documentation = https://docs.rstudio.com/rsconnect-python
16
16
17
17
[options]
18
- install_requires =
19
- six>=1.14.0
20
- click>=8.0.0
21
- pip>=10.0.0
22
- semver>=2.0.0,<3.0.0
23
- pyjwt>=2.4.0
24
- setup_requires =
25
- setuptools
26
- setuptools_scm>=3.4
27
- toml
28
- wheel
29
18
packages = rsconnect
30
19
python_requires = >=3.7
31
20
zip_safe = true
Original file line number Diff line number Diff line change 1
1
from setuptools import setup
2
2
3
- setup ()
3
+ # Dependencies here so Snyk can see them
4
+ # https://github.com/snyk/snyk-python-plugin/issues/147
5
+ setup (
6
+ install_requires = [
7
+ "six>=1.14.0" ,
8
+ "click>=7.0.0" ,
9
+ "pip>=10.0.0" ,
10
+ "semver>=2.0.0,<3.0.0" ,
11
+ "pyjwt>=2.4.0" ,
12
+ ],
13
+ setup_requires = [
14
+ "setuptools" ,
15
+ "setuptools_scm>=3.4" ,
16
+ "toml" ,
17
+ "wheel" ,
18
+ ],
19
+ )
You can’t perform that action at this time.
0 commit comments