Skip to content

Commit

Permalink
Update poetry.lock
Browse files Browse the repository at this point in the history
Update dependencies in poetry.lock file to fix error in CI that was
caused by downgraded dependencies in poetry.lock.

Update of bandit found a possible security issue in sourceforge_git
backend, which is fixed as part of this commit.

Signed-off-by: Michal Konecny <[email protected]>
  • Loading branch information
Zlopez committed Mar 13, 2024
1 parent 8209ce8 commit 155866b
Show file tree
Hide file tree
Showing 2 changed files with 1,621 additions and 1,309 deletions.
7 changes: 4 additions & 3 deletions anitya/lib/backends/sourceforge_git.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
"""sourceforge_git"""
import requests
from bs4 import BeautifulSoup

from anitya.lib.backends import BaseBackend
from anitya.lib.backends import REQUEST_HEADERS, BaseBackend, http_session
from anitya.lib.exceptions import AnityaPluginException


Expand Down Expand Up @@ -99,7 +98,9 @@ def get_versions(cls, project):
"""
namespace, repo = cls.get_namespace_repo(project)
url = project.get_version_url()
git_tag_request = requests.get(url) # pylint: disable=W3101
git_tag_request = http_session.get(
url, headers=REQUEST_HEADERS, timeout=60, verify=True
) # pylint: disable=W3101

if git_tag_request.status_code == 404:
raise AnityaPluginException(
Expand Down
Loading

0 comments on commit 155866b

Please sign in to comment.