scalyr / scalyr-agent-2

The source code for Scalyr Agent 2, the daemon process Scalyr customers run on their servers to collect metrics and logs.
Apache License 2.0
70 stars 60 forks source link

[Snyk] Security upgrade black from 22.6.0 to 24.3.0 #1249

Closed martin-majlis-s1 closed 3 months ago

martin-majlis-s1 commented 5 months ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.

#### Changes included in this PR - Changes to the following files to upgrade the vulnerable dependencies to a fixed version: - lint-requirements.txt #### Vulnerabilities that will be fixed ##### By pinning: Severity | Priority Score (*) | Issue | Upgrade | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:-------------------------|:------------------------- ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **658/1000**
**Why?** Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3 | Regular Expression Denial of Service (ReDoS)
[SNYK-PYTHON-BLACK-6256273](https://snyk.io/vuln/SNYK-PYTHON-BLACK-6256273) | `black:`
`22.6.0 -> 24.3.0`
| No | Proof of Concept (*) Note that the real score may have changed since the PR was raised. Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded. Check the changes in this PR to ensure they won't cause issues with your project. ------------ **Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?utm_source=github&utm_medium=referral&page=fix-pr) πŸ›  [Adjust project settings](https://app.snyk.io/org/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?utm_source=github&utm_medium=referral&page=fix-pr/settings) πŸ“š [Read more about Snyk's upgrade and patch logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) [//]: # (snyk:metadata:{"prId":"3c807c0b-a106-4a1f-a95b-9c8fa493f29f","prPublicId":"3c807c0b-a106-4a1f-a95b-9c8fa493f29f","dependencies":[{"name":"black","from":"22.6.0","to":"24.3.0"}],"packageManager":"pip","projectPublicId":"e975ae36-330c-4b3d-a18e-8ac993e09f2a","projectUrl":"https://app.snyk.io/org/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-PYTHON-BLACK-6256273"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[658],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** πŸ¦‰ [Regular Expression Denial of Service (ReDoS)](https://learn.snyk.io/lesson/redos/?loc=fix-pr)
github-actions[bot] commented 5 months ago

Test Results

βŸβ€„β€ˆβŸβ€„20 files  Β±0β€‚β€ƒβŸβ€„β€ˆβŸβ€„20 suites  Β±0   32m 1s :stopwatch: -17s 1β€ˆ486 tests Β±0  1β€ˆ466 :heavy_check_mark: Β±0β€‚β€ƒβŸβ€„20 :zzz: Β±0  0 :x: Β±0  7β€ˆ101 runs  Β±0  6β€ˆ876 :heavy_check_mark: Β±0  225 :zzz: Β±0  0 :x: Β±0 

Results for commit a158937f. ± Comparison against base commit 03a25ebe.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.28%. Comparing base (03a25eb) to head (a158937).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1249/graphs/tree.svg?width=650&height=150&src=pr&token=KrvyP8n7be&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr)](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1249?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr) ```diff @@ Coverage Diff @@ ## master #1249 +/- ## ========================================== - Coverage 81.79% 78.28% -3.51% ========================================== Files 176 176 Lines 42965 42965 Branches 4782 4782 ========================================== - Hits 35140 33632 -1508 - Misses 6590 8256 +1666 + Partials 1235 1077 -158 ``` [see 23 files with indirect coverage changes](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1249/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr)