Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tartufo no longer able to scan repositories with GIT submodules #529

Open
adifelice-godaddy opened this issue May 22, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@adifelice-godaddy
Copy link

🐛 Bug Report

The method Repository.lookup_submodule from pygit2 was removed (deprecated). But the scanner module is still calling it causing an exception.

Line:

submodule = repo.lookup_submodule(module)

To Reproduce

Scan a repository with GIT submodules.

Expected Behavior

Complete scan.

Code Example

Removing error handler exposes the actual exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'Repository' object has no attribute 'lookup_submodule'

Environment

Any.

@adifelice-godaddy adifelice-godaddy added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant