Skip to content

Commit c40f6b8

Browse files
committed
add org and python version as variable
1 parent 899ffaa commit c40f6b8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/snyk.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@ on: push
33
jobs:
44
security:
55
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python: 10
69
steps:
710
- name: Check out repository
811
uses: actions/checkout@v2
912

1013
- name: Set up Python
1114
uses: actions/setup-python@v2
1215
with:
13-
python-version: '3.10'
16+
python-version: ${{ matrix.python }}
1417
cache: 'pip'
1518

1619
- name: Install dependencies
1720
run: |
1821
python -m pip install --upgrade pip
1922
pip install -r ./lambda-source/requirements.txt
2023
npm install --no-fund snyk -g
21-
2224
- name: Run Snyk to check for vulnerabilities
2325
run: |
24-
snyk test --file=./lambda-source/requirements.txt
26+
snyk test --org=$ORG --file=./lambda-source/requirements.txt
2527
env:
2628
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
29+
ORG: broadwing-limited

0 commit comments

Comments
 (0)