-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
We have a case where the developers were using the dev branch and the main branch on Github because they were using a Gitflow approach
But now they are doing Continuous Deployment so their main branch has changed to master.
This has caused the server to crash every time that tries to go through that repository
We use detect-secrets-server as a cronjob on Kubernetes using a Persistent volume claim for the folder /repositories/
Scanning: [email protected]:my-company/my-app.git
Traceback (most recent call last):
File "/usr/bin/detect-secrets-server", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/detect_secrets_server/__main__.py", line 39, in main
return actions.scan_repo(args)
File "/usr/lib/python2.7/site-packages/detect_secrets_server/actions/scan.py", line 37, in scan_repo
scan_head=args.scan_head,
File "/usr/lib/python2.7/site-packages/detect_secrets_server/repos/base_tracked_repo.py", line 133, in scan
self.storage.fetch_new_changes()
File "/usr/lib/python2.7/site-packages/detect_secrets_server/storage/base.py", line 84, in fetch_new_changes
git.fetch_new_changes(self._repo_location)
File "/usr/lib/python2.7/site-packages/detect_secrets_server/storage/core/git.py", line 71, in fetch_new_changes
'--force',
File "/usr/lib/python2.7/site-packages/detect_secrets_server/storage/core/git.py", line 213, in _git
stderr=subprocess.STDOUT
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['git', '--git-dir', '/repositories/repos/179222fd2291a1a104c7750b95f5c3df3ae7f9c6325d25e5047059ffd25e47369c080091f58dd06007cc905ed31b60da447f7c2fd9f0fa1eded4740f3bf43760', 'fetch', '--quiet', 'origin', 'dev:dev', '--force']' returned non-zero exit status 128
Metadata
Metadata
Assignees
Labels
No labels