Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

python language not detected #61

Closed
njohnson-tw opened this issue Jun 8, 2018 · 7 comments
Closed

python language not detected #61

njohnson-tw opened this issue Jun 8, 2018 · 7 comments
Labels
more-information-needed More information needs to be collected about these problems or feature requests.

Comments

@njohnson-tw
Copy link

I'm scanning a python app for a client, and the python language wasn't detected. They're using a Pipfile, not a requirements.txt. Do you think that might be the problem?

@njohnson-tw
Copy link
Author

njohnson-tw commented Jun 8, 2018

OK that's definitely the problem. I did a 'touch requirements.txt', reran hawkeye and it ran all the python modules this time. However python-safety isn't finding any outdated dependencies, since they're all in the Pipfile. I wonder if there's a better dependency checker that supports Pipfile.

@lauraionescu
Copy link
Contributor

Hi @njohnson-tw ,
It looks like Pipenv has a command for checking security vulnerabilities (pipenv check). I might try to work on a PR to incorporate pipenv checks in addition to the other Python scanning modules.

@meandor
Copy link

meandor commented Oct 5, 2018

for people looking for a quickfix until hawkeye can check pipfiles:
just create a requirements.txt from your pipfile:

pipenv lock -r > requirements.txt

@felixhammerl
Copy link
Collaborator

As I am not a Pythonero, I have some stupid questions...

Do bandit, piprot, and safety depend in any way on the requirements.txt being present? If they can work with either the Pipfile or the requirements.txt being present, then the fix is trivially simple, we just add it to the python modulehandle() hook ...

Also: @lauraionescu please do set up a PR for pipenv check. If you need any help, you know how to reach me :)

@felixhammerl felixhammerl added the more-information-needed More information needs to be collected about these problems or feature requests. label Oct 19, 2018
@lauraionescu
Copy link
Contributor

Thanks for reminding me @felixhammerl :)

To answer your question:
piprot doesn't support Pipfile yet, there's an open issue for that: https://github.com/sesh/piprot/issues/71

bandit I've never used it before, but as far as I can tell, it doesn't take into account requirements.txt or Pipfile, it works more as a linter

safety also has an open issue that is waiting on a refactoring of
pipfile itself pyupio/safety#47 but it's been quiet in the past year

@felixhammerl
Copy link
Collaborator

Closing this in favor is #88, #89 , #90

@njohnson-tw
Copy link
Author

This is great. Thanks for evaluating the issue and adding additional issues for the three python related tools.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
more-information-needed More information needs to be collected about these problems or feature requests.
Projects
None yet
Development

No branches or pull requests

4 participants