Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: snyk
on:
schedule:
- cron: "0 10 * * 1" # Monday @ 10am UTC
workflow_dispatch:

env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG: rstudio-connect
SNYK_PROJECT: rsconnect-python

jobs:
python-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk on dependencies
uses: snyk/actions/python@master
with:
command: monitor
args: --file=setup.py --print-deps --project-name=${{ env.SNYK_PROJECT }} --org=${{ env.SNYK_ORG }}
python-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk static analysis
uses: snyk/actions/python@master
with:
command: code test
args: --project-name=${{ env.SNYK_PROJECT }} --org=${{ env.SNYK_ORG }}
11 changes: 0 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ project_urls =
Documentation = https://docs.rstudio.com/rsconnect-python

[options]
install_requires =
six>=1.14.0
click>=8.0.0
pip>=10.0.0
semver>=2.0.0,<3.0.0
pyjwt>=2.4.0
setup_requires =
setuptools
setuptools_scm>=3.4
toml
wheel
packages = rsconnect
python_requires = >=3.7
zip_safe = true
Expand Down
18 changes: 17 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
from setuptools import setup

setup()
# Dependencies here so Snyk can see them
# https://github.com/snyk/snyk-python-plugin/issues/147
setup(
install_requires=[
"six>=1.14.0",
"click>=7.0.0",
"pip>=10.0.0",
"semver>=2.0.0,<3.0.0",
"pyjwt>=2.4.0",
],
setup_requires=[
"setuptools",
"setuptools_scm>=3.4",
"toml",
"wheel",
],
)