Skip to content

Commit d425201

Browse files
committed
fix: install dependencies using pip instead of poetry which continues to find security vulnerabilities for urllib3 and black
1 parent 0f66acc commit d425201

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/safety.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,13 @@ jobs:
3636
#----------------------------------------------
3737
# install dependencies without cache
3838
#----------------------------------------------
39-
- name: Install dependencies
39+
- name: Install dependencies for safety scan
4040
run: |
41-
rm -f poetry.lock
42-
poetry cache clear --all pypi
43-
poetry install --only main --no-root
44-
poetry run pip install --upgrade black==24.3.0 urllib3==2.5.0
45-
#----------------------------------------------
46-
# Run Safety scan
47-
#----------------------------------------------
48-
- name: Verify installed packages
49-
run: |
50-
poetry run pip list | grep -E "black|urllib3"
41+
python -m pip install --upgrade pip
42+
pip install -r requirements-safety.txt
43+
pip install safety
5144
- name: Safety scan
5245
env:
5346
API_KEY: ${{secrets.SAFETY_API_KEY}}
5447
run: |
55-
poetry run pip install safety
56-
poetry run pip freeze > requirements-freeze.txt
57-
poetry run safety check --file requirements-freeze.txt --ignore=66742 --ignore=77744
48+
safety check --file requirements-safety.txt --ignore=66742 --ignore=77744

requirements-safety.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
boto3>=1.35.0
2+
crhelper>=2.0.11
3+
black==24.3.0
4+
urllib3==2.5.0
5+
setuptools<81

0 commit comments

Comments
 (0)