Skip to content

Commit 264ff7e

Browse files
committed
Snyk workflow
1 parent 5ceabe9 commit 264ff7e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/snyk.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

0 commit comments

Comments
 (0)