Comments (8)
Are you sure you are using the latest code? Do you mind testing it via the docker image instead? Please reopen this once you have verified that this is also happening via the docker image.
from git-all-secrets.
Thanks for your reply.
I'm sure of using the latest image.
Here is my Dockerfile
FROM abhartiya/tools_gitallsecrets:latest
RUN apk update && apk add openssh
COPY known_hosts /root/.ssh/
command line flags
docker run -it --rm -v ~/.ssh/id_rsa:/root/.ssh/id_rsa mayer.ma/tools_gitallsecrets -token=5f28004bc6d2411b3719f4092071099b1780c8a5 -org=<org> -enterpriseURL https://<api_url>/
from git-all-secrets.
Based on the error, it looks like its having trouble cloning user gists. I am not sure how to test for this but I will keep this issue open for now. If I do encounter this during my testing, I will try to fix it.
from git-all-secrets.
Thanks!
More info when the error occurred.
git@<url>:<org>/<repo_name>.git
git@<url>:<org>/<repo_name>.git
Done cloning org repos.
Listing users of the organization and their repositories and gists
Cloning A's repositories
If the scanPrivateReposOnly flag is set, this will only scan the private repositories of this user. If that flag is not set, only public repositories are scanned.
Done cloning user repos.
Cloning B's repositories
If the scanPrivateReposOnly flag is set, this will only scan the private repositories of this user. If that flag is not set, only public repositories are scanned.
Done cloning user repos.
<Omit many of the same output. We have dozens of users in this organization>
Cloning Q's gists
Irrespective of the scanPrivateReposOnly flag being set or not, this will scan all public AND secret gists of a user whose token is provided
panic: runtime error: index out of range
goroutine 1 [running]:
main.cloneusergists(0x721c20, 0xc420016018, 0xc42008ed80, 0xc420016660, 0xb, 0x0, 0x0)
/go/src/github.com/anshumanbh/git-all-secrets/main.go:249 +0x595
main.main()
/go/src/github.com/anshumanbh/git-all-secrets/main.go:975 +0x77a
from git-all-secrets.
My guess is the token that you provided, whoever that token belongs to, there is something wrong with the gists of that user. Can you try using a different token of a different user?
from git-all-secrets.
Sure, wait a minute.
The same result.
The crash point seems to look the same according to stdout.
from git-all-secrets.
Erm, do you know Go? I guess, my next step would be to do some debugging by directly running the main.go
file with the parameters you are providing, having some print statements to figure out where and why this is failing.
For me to replicate this, I'd need your SSH keys, token, and all the other parameters. Not sure if thats possible. I personally wouldn't want it but in order for me to figure out what's going on here, I'd need some sample input to reproduce this because I can't reproduce it on my own.
from git-all-secrets.
I'm trying to run this program in my enterprise Github. It's in the intranet environment.
It has strict confidentiality and privilege management. So I'm sorry for that.
from git-all-secrets.
Related Issues (20)
- index-pack-failed HOT 1
- "results.txt" has shell color characters in it HOT 1
- Docker Image failed to build due to missing SSH client HOT 1
- No Result HOT 1
- Ask username with token HOT 4
- Improper line breaks in /root/.ssh/config HOT 4
- Running without docker HOT 1
- ssl certificate error
- Request for feature - Web Interface option for results HOT 1
- Small code clarification HOT 1
- Question regarding performance/efficiency HOT 1
- 404 Not Found
- Support non-Github hosted repositories HOT 1
- container not authenticating after mapping ssh key HOT 2
- not able to get output HOT 1
- running only truffleHog gives blank results
- No output generated HOT 1
- x509 Error when attempting to access Org HOT 1
- Github action
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-all-secrets.