Giter VIP home page Giter VIP logo

Comments (5)

domanchi avatar domanchi commented on May 30, 2024 1

Closing due to inactivity.

@Tioborto , feel free to reopen when you have the full exception, so that we can better debug it.

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

Hi @Tioborto, thank you so much for the bug report, sorry about the bug. I merged this code (the keyword detector) last Friday.

Do you know what exception was thrown? Could you provide a small file to reproduce the error, if possible?

from detect-secrets.

Tioborto avatar Tioborto commented on May 30, 2024

Hello @KevinHock ,
The error came from I parsed the result. The result output was in bytes.. I decode in utf-8 format. It works now

from detect-secrets.

Tioborto avatar Tioborto commented on May 30, 2024

I've found another bug :

Traceback (most recent call last):
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/bin/detect-secrets", line 11, in <module>
    sys.exit(main())
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/main.py", line 43, in main
    _perform_scan(args, plugins),
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/main.py", line 118, in _perform_scan
    args.all_files,
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/core/baseline.py", line 52, in initialize
    output.scan_file(file)
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/core/secrets_collection.py", line 185, in scan_file
    self._extract_secrets_from_file(f, filename_key)
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/core/secrets_collection.py", line 282, in _extract_secrets_from_file
    results.update(plugin.analyze(f, filename))
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/plugins/base.py", line 32, in analyze
    secrets = self.analyze_string(line, line_num, filename)
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/plugins/keyword.py", line 136, in analyze_string
    filetype=determine_file_type(filename),
  File "/home/abortoluzzi59/detect-secrets-allprojects/venv/local/lib/python3.5/site-packages/detect_secrets/plugins/keyword.py", line 157, in secret_generator
    match = REGEX.search(lowered_string)

Have you ever had that mistake ?

from detect-secrets.

KevinHock avatar KevinHock commented on May 30, 2024

Can you post the exception and not just the traceback @Tioborto?

from detect-secrets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.