N0MoreSecr3ts / wraith

Uncover forgotten secrets and bring them back to life, haunting security and operations teams.
MIT License
207 stars 42 forks source link

Adding API key to sample.yml but still get token error #122

Closed dogagelisli closed 2 years ago

dogagelisli commented 2 years ago

Hello, i add my api key to sample.yml but still i get error when i run the script. ( token error )

pwd > wraith/config/sample.yml

What should i do ?

VikzSharma commented 2 years ago

same here man very irritating

mattyjones commented 2 years ago

@dogagelisli @VikzSharma

I am not sure of the issue but the following works on my test box

I download the 0.0.9 release and built it using make build then I executed bin/wraith-darwin scanGithub with no flags and a clean env. With these steps I was able to clone and scan both private and public repos for orgs I am in and orgs I am not in.

The config file is located at /Users/bob/.wraith/config.yaml

The config file used is

---
commit-depth: -1
debug: false
github-api-token: not_a_real_token_and_dont_want_to_trip_github_scanning
github-orgs:
  #    - ansible
    - N0MoreSecr3ts
github-repos:
  #    - ansible
      #github-users:
      #- <user 1>
      #gitlab-api-token: <token>
      #gitlab-targets:
      #- <repo 1>
      #- <project 1>
      #- <user 1>
scan-forks: false
scan-tests: false
ignore-extension:
    - .html
    - .css
    - .log
ignore-path:
    - static/
    - docs/
    - .idea/
in-mem-clone: false
  #local-paths:
  #    - ../relative/path/to/file.md
  #    - $HOME/path/to/file.pl
  #    - /absolute/path/to/file.rb
confidence-level: 3
num-threads: 1
  #local-repos:
  #    - ../wraith
  #    - /home/bob/Go/src/foo
silent: false
web-server: true
json: false
csv: false
test-signatures: false
signatures-path: "~/.wraith/signatures"
signature-file:
    - ../wraith-signatures/signatures/default.yaml
signatures-url: "https://github.com/N0MoreSecr3ts/wraith-signatures"
signatures-version: "0.2.0"