Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix: LEAP-293: bump pillow version to respond to CVE-2023-4863 #249

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'

- uses: actions/cache@v3
name: Configure pip cache
id: pip-cache
Expand All @@ -45,21 +45,21 @@ jobs:
key: ${{ env.CACHE_NAME_PREFIX }}-${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
restore-keys: |
${{ env.CACHE_NAME_PREFIX }}-${{ runner.os }}-pip-

- name: Install dependencies
run: |
sudo apt-get clean
sudo apt-get update
sudo apt-get install virtualenv libsasl2-dev python3-dev libldap2-dev libssl-dev
pip install -U pip==20.2
pip install -r requirements.txt -r requirements-test.txt
pip install -r requirements.txt -r requirements-test.txt

- name: Run functional tests
run: |
pytest --junitxml report.xml --cov=. -m "not integration_tests"

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
fail_ci_if_error: true
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pandas>=0.24.0
requests>=2.22.0,<3
Pillow==9.3.0
Pillow>=10.0.1
nltk==3.6.7
label-studio-tools>=0.0.3
ujson
ijson~=3.2.0.post0