Skip to content

Commit 7246b60

Browse files
ci: add Python setup and dependency installation steps to Snyk workflow
1 parent 4c4afdb commit 7246b60

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/snyk.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
with:
8080
ref: ${{ github.event.pull_request.head.sha || github.ref }}
8181

82+
- name: Set up Python
83+
uses: actions/setup-python@v5
84+
with:
85+
python-version: '3.11'
86+
8287
- name: Check for requirements.txt
8388
working-directory: packages/${{ matrix.package }}
8489
run: |
@@ -91,6 +96,13 @@ jobs:
9196
echo "Dependencies to scan:"
9297
head -5 requirements.txt
9398
99+
- name: Install dependencies
100+
working-directory: packages/${{ matrix.package }}
101+
run: |
102+
echo "Installing dependencies for Snyk scan..."
103+
pip install -r requirements.txt
104+
echo "✅ Dependencies installed successfully"
105+
94106
- name: Run Snyk security scan
95107
uses: snyk/actions/python@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
96108
env:

0 commit comments

Comments
 (0)