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 bandit from 1.6.3 to 1.7.7 #1243

Closed martin-majlis-s1 closed 3 months ago

martin-majlis-s1 commented 6 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
⚠️ Warning ``` mypy 0.761 has requirement typed-ast<1.5.0,>=1.4.0, but you have typed-ast 1.5.5. mypy 0.761 has requirement mypy-extensions<0.5.0,>=0.4.3, but you have mypy-extensions 1.0.0. ```
#### Vulnerabilities that will be fixed ##### By pinning: Severity | Priority Score (*) | Issue | Upgrade | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:-------------------------|:------------------------- ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png "high severity") | **646/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 7.2 | SQL Injection
[SNYK-PYTHON-BANDIT-6241859](https://snyk.io/vuln/SNYK-PYTHON-BANDIT-6241859) | `bandit:`
`1.6.3 -> 1.7.7`
| No | No Known Exploit (*) 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":"31483d2a-1772-49aa-a870-277aac178cbb","prPublicId":"31483d2a-1772-49aa-a870-277aac178cbb","dependencies":[{"name":"bandit","from":"1.6.3","to":"1.7.7"}],"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-BANDIT-6241859"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"priorityScoreList":[646],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [SQL Injection](https://learn.snyk.io/lesson/sql-injection/?loc=fix-pr)
github-actions[bot] commented 6 months ago

Test Results

     20 files  ±0       20 suites  ±0   31m 49s :stopwatch: -2s 1 477 tests ±0  1 457 :heavy_check_mark: ±0    20 :zzz: ±0  0 :x: ±0  7 060 runs  ±0  6 835 :heavy_check_mark: ±0  225 :zzz: ±0  0 :x: ±0 

Results for commit d36d9b09. ± Comparison against base commit ae9f3d64.

codecov[bot] commented 6 months ago

Codecov Report

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

Comparison is base (ae9f3d6) 81.62% compared to head (d36d9b0) 55.05%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1243/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/1243?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr) ```diff @@ Coverage Diff @@ ## master #1243 +/- ## =========================================== - Coverage 81.62% 55.05% -26.57% =========================================== Files 176 51 -125 Lines 42565 18428 -24137 Branches 4749 3260 -1489 =========================================== - Hits 34741 10145 -24596 - Misses 6600 7089 +489 + Partials 1224 1194 -30 ``` [see 169 files with indirect coverage changes](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1243/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr)