Skip to content

Commit 1221efd

Browse files
chayimdvora-h
andauthored
Adding dependency vulnerability scanning to the CI process (#345)
Adding dependency scanning for CI Co-authored-by: dvora-h <[email protected]>
1 parent c16895c commit 1221efd

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

Diff for: .github/workflows/ci.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,31 @@ on:
1414
schedule:
1515
- cron: '0 6 * * *' # Daily 6AM UTC build
1616

17+
env:
18+
pythonversion: 3.9
19+
1720

1821
jobs:
1922

23+
dependency-audit:
24+
name: Dependency audit
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: install python
29+
uses: actions/[email protected]
30+
with:
31+
python-version: ${{env.pythonversion}}
32+
- name: create local poetry install
33+
run: |
34+
python -m venv .venv
35+
source .venv/bin/activate
36+
python -m pip install poetry
37+
poetry install
38+
- uses: trailofbits/[email protected]
39+
with:
40+
virtual-environment: .venv
41+
2042
lint:
2143
name: Linter
2244
runs-on: ubuntu-latest
@@ -27,7 +49,7 @@ jobs:
2749
- name: Setup Python 3.9
2850
uses: actions/[email protected]
2951
with:
30-
python-version: 3.9
52+
python-version: ${{env.pythonversion}}
3153
#----------------------------------------------
3254
# ----- install & configure poetry -----
3355
#----------------------------------------------

0 commit comments

Comments
 (0)