Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Bandit write to a file then read it to avoid problems with warni… #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkonda
Copy link
Collaborator

@mkonda mkonda commented Oct 13, 2018

…ngs.

@@ -18,7 +18,13 @@ def initialize(trigger, tracker)

def run
rootpath = @trigger.path
@result=runsystem(true, "bandit", "-f", "json", "-r", "#{rootpath}")
context = SecureRandom.uuid
@tmppath = "/tmp/#{context}/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use tmpdir for multi-platform support? Also, might be nice to allow the user to override the location.
Also, are all users allows to write there?

@omerlh
Copy link
Collaborator

omerlh commented Oct 14, 2018

What about tests?

@stale
Copy link

stale bot commented Dec 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants