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

Commit

Permalink
fix: LEAP-293: bump pillow version to respond to CVE-2023-4863 (#249)
Browse files Browse the repository at this point in the history
* fix: LEAP-293: bump pillow version to respond to CVE-2023-4863

* bump test runner python version (we dont support 3.7 anyway)
  • Loading branch information
jombooth authored Oct 12, 2023
1 parent c78118f commit 5b765a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
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

0 comments on commit 5b765a6

Please sign in to comment.