Skip to content

Commit 00903bc

Browse files
authored
Merge branch 'master' into mm-verbose-logging
2 parents c16a62a + e79f41a commit 00903bc

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/snyk.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,34 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- name: Run Snyk (setup.py)
20-
uses: snyk/actions/python@master
19+
# - name: Run Snyk (setup.py)
20+
# uses: snyk/actions/python@master
21+
# with:
22+
# command: monitor
23+
# args: --file=setup.py --package-manager=pip --project-name=setup.py --org=${{ env.SNYK_ORG }}
24+
25+
# - name: Run Snyk (requirements.txt)
26+
# uses: snyk/actions/python@master
27+
# with:
28+
# command: monitor
29+
# args: --file=requirements.txt --package-manager=pip --project-name=requirements.txt --org=${{ env.SNYK_ORG }}
30+
31+
# On Oct 2 2023, the steps using snyk/actions/python@master started failing with "undefined".
32+
# Nothing obvious changed in our code or in the Snyk action or Docker image.
33+
# Setting up and running snyk generically seems to work, so we'll go with that.
34+
- name: Set up Python
35+
uses: actions/setup-python@v4
2136
with:
22-
command: monitor
23-
args: --file=setup.py --package-manager=pip --project-name=setup.py --org=${{ env.SNYK_ORG }}
37+
python-version: '3.11'
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -r requirements.txt
42+
43+
- uses: snyk/actions/setup@master
44+
45+
- name: Run Snyk (setup.py)
46+
run: snyk monitor --file="setup.py" --package-manager=pip --project-name="setup.py" --org=${{ env.SNYK_ORG }}
2447

2548
- name: Run Snyk (requirements.txt)
26-
uses: snyk/actions/python@master
27-
with:
28-
command: monitor
29-
args: --file=requirements.txt --package-manager=pip --project-name=requirements.txt --org=${{ env.SNYK_ORG }}
49+
run: snyk monitor --file="requirements.txt" --package-manager=pip --project-name="requirements.txt" --org=${{ env.SNYK_ORG }}

0 commit comments

Comments
 (0)