You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use CLI command "scan_snapshot" to scan my master branch, it raised error as below, could you please check?
INFO:credentialdigger.cli.cli:Database in use: Sqlite
INFO:credentialdigger.cli.scan_snapshot:Scan snapshot at branch/commit master
Traceback (most recent call last):
File "/usr/local/bin/credentialdigger", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/credentialdigger/__main__.py", line 7, in main
cli.main(sys.argv)
File "/usr/local/lib/python3.10/site-packages/credentialdigger/cli/cli.py", line 152, in main
args.func(client, args)
File "/usr/local/lib/python3.10/site-packages/credentialdigger/cli/scan_snapshot.py", line 129, in run
discoveries = client.scan_snapshot(
File "/usr/local/lib/python3.10/site-packages/credentialdigger/client.py", line 869, in scan_snapshot
return self._scan(
File "/usr/local/lib/python3.10/site-packages/credentialdigger/client.py", line 1195, in _scan
raise e
File "/usr/local/lib/python3.10/site-packages/credentialdigger/client.py", line 1187, in _scan
new_discoveries = scanner.scan(repo_url,
File "/usr/local/lib/python3.10/site-packages/credentialdigger/scanners/git_file_scanner.py", line 121, in scan
discoveries = self._scan(
File "/usr/local/lib/python3.10/site-packages/credentialdigger/scanners/git_file_scanner.py", line 166, in _scan
self._prune(rel_dir_root, dirs, files,
File "/usr/local/lib/python3.10/site-packages/credentialdigger/scanners/file_scanner.py", line 210, in _prune
if any([fnmatch(dir_path, pattern) for pattern in ignore_list]):
TypeError: 'NoneType' object is not iterable
The command I'm using is "/usr/local/bin/credentialdigger scan_snapshot $REPO_URL --sqlite /credential-digger-ui/data.db --snapshot master --dotenv /credential-digger-ui/.env --similarity --models PathModel PasswordModel --git_token $TOKEN".
The thing is, I can do the full scan by using "scan" command, and the result is correct in UI. But when I use scan_snapshot, it raised error during script running, and the result can't be displayed in UI. I tried with new db (recreate the data.db), it's same as well.
The text was updated successfully, but these errors were encountered:
Hi @Mr-Li-Chang thanks for solving the issue. Feel free to open a pull request to speed up the patching, I am currently out of office and will have time to fix this in the next days
Hi Colleagues,
When I use CLI command "scan_snapshot" to scan my master branch, it raised error as below, could you please check?
The command I'm using is "/usr/local/bin/credentialdigger scan_snapshot $REPO_URL --sqlite /credential-digger-ui/data.db --snapshot master --dotenv /credential-digger-ui/.env --similarity --models PathModel PasswordModel --git_token $TOKEN".
The thing is, I can do the full scan by using "scan" command, and the result is correct in UI. But when I use scan_snapshot, it raised error during script running, and the result can't be displayed in UI. I tried with new db (recreate the data.db), it's same as well.
The text was updated successfully, but these errors were encountered: