Skip to content

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

Open
mkonda wants to merge 1 commit into
masterfrom
mkonda/fixbandit
Open

Make Bandit write to a file then read it to avoid problems with warni…#139
mkonda wants to merge 1 commit into
masterfrom
mkonda/fixbandit

Conversation

@mkonda

@mkonda mkonda commented Oct 13, 2018

Copy link
Copy Markdown
Collaborator

…ngs.

Comment thread lib/glue/tasks/bandit.rb
rootpath = @trigger.path
@result=runsystem(true, "bandit", "-f", "json", "-r", "#{rootpath}")
context = SecureRandom.uuid
@tmppath = "/tmp/#{context}/"

Copy link
Copy Markdown
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

omerlh commented Oct 14, 2018

Copy link
Copy Markdown
Collaborator

What about tests?

@stale

stale Bot commented Dec 13, 2018

Copy link
Copy Markdown

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