Skip to content

Commit 7fd462a

Browse files
committed
Fix Dependabot security alerts by updating test fixture versions
- Update urllib3 from 1.26.9 to 2.5.0 (fixes 4 CVEs) - Update requests from 2.28.0 to 2.32.4 (fixes 3 CVEs) - These are test data files only, not actual dependencies - Updated corresponding test assertions to match new versions - Resolves all 7 Dependabot alerts (#1-#7) Affected files: - tests/data/requirements/constraints.txt - tests/data/requirements/basic_requirements.txt - tests/data/config_samples/config_with_overrides.ini - tests/test_config.py (updated assertions) Note: No actual security risk existed as these versions were only used in test fixture files and never installed as dependencies.
1 parent 4134bf3 commit 7fd462a

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
[jensens]
1111
- Chore: Improved test coverage for main.py from 42% to 100%. Added comprehensive tests for the main() function covering all CLI argument combinations (--verbose, --silent, --offline, --threads, --no-fetch, --fetch-only), ensuring robust testing of the entry point and all code paths.
1212
[jensens]
13+
- Chore: Updated test fixture data versions to resolve Dependabot security alerts. Updated urllib3 from 1.26.9 to 2.5.0 and requests from 2.28.0 to 2.32.4 in test data files. These are test fixtures only and were never actual dependencies or security risks. Resolves GitHub Dependabot alerts #1-7.
14+
[jensens]
1315
- Fix: Add 'synchronize' event to pull_request workflow triggers. This ensures CI runs when PRs are updated with new commits (e.g., after rebasing or pushing new changes), not just when opened or reopened.
1416
[jensens]
1517
- Chore: Optimize GitHub Actions to prevent duplicate workflow runs on pull requests. Restrict `push` trigger to only run on `main` branch, so PRs only trigger via `pull_request` event. This reduces CI resource usage by 50% for PR workflows.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[settings]
22
requirements-in = requirements.txt
33
version-overrides =
4-
requests==2.28.0
5-
urllib3==1.26.9
4+
requests==2.32.4
5+
urllib3==2.5.0
66

77
[example.package]
88
url = https://github.com/example/package.git
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
requests>=2.28.0
2-
urllib3>=1.26.9
1+
requests>=2.32.4
2+
urllib3>=2.5.0
33
packaging>=21.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
requests==2.28.0
2-
urllib3==1.26.9
1+
requests==2.32.4
2+
urllib3==2.5.0
33
packaging==21.3

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def test_configuration_with_overrides():
6868
config = Configuration(str(base / "config_with_overrides.ini"))
6969

7070
assert "requests" in config.overrides
71-
assert config.overrides["requests"] == "requests==2.28.0"
71+
assert config.overrides["requests"] == "requests==2.32.4"
7272
assert "urllib3" in config.overrides
73-
assert config.overrides["urllib3"] == "urllib3==1.26.9"
73+
assert config.overrides["urllib3"] == "urllib3==2.5.0"
7474
assert "requests" in config.override_keys
7575
assert "urllib3" in config.override_keys
7676

0 commit comments

Comments
 (0)