@@ -16,14 +16,34 @@ jobs:
16
16
with :
17
17
fetch-depth : 0
18
18
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
21
36
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 }}
24
47
25
48
- 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