Skip to content

Commit ac9860b

Browse files
authored
Merge pull request #334 from rstudio/snyk-integration
Modify Snyk integration to monitor open source scanning only
2 parents 645ec33 + b189209 commit ac9860b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/snyk.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@ on:
77
env:
88
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
99
SNYK_ORG: rstudio-connect
10-
SNYK_PROJECT: rsconnect-python
1110

1211
jobs:
13-
python-dependencies:
12+
snyk-monitor:
1413
runs-on: ubuntu-latest
1514
steps:
16-
- uses: actions/checkout@master
17-
- name: Run Snyk on dependencies
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Run Snyk (setup.py)
1820
uses: snyk/actions/python@master
1921
with:
2022
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
23+
args: --file=setup.py --package-manager=pip --project-name=setup.py --org=${{ env.SNYK_ORG }}
24+
25+
- name: Run Snyk (requirements.txt)
2726
uses: snyk/actions/python@master
2827
with:
29-
command: code test
30-
args: --project-name=${{ env.SNYK_PROJECT }} --org=${{ env.SNYK_ORG }} rsconnect/
28+
command: monitor
29+
args: --file=requirements.txt --package-manager=pip --project-name=requirements.txt --org=${{ env.SNYK_ORG }}

0 commit comments

Comments
 (0)