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

HTML output should use absolute paths #215

Open
ericwb opened this issue Apr 27, 2018 · 0 comments
Open

HTML output should use absolute paths #215

ericwb opened this issue Apr 27, 2018 · 0 comments
Milestone

Comments

@ericwb
Copy link
Member

ericwb commented Apr 27, 2018

Bandit's HTML reports generate links to files. These links are relative
to Bandit's current working directory. If the output file is written
into a different directory, these links will be broken:

cd bandit/examples
bandit assert.py -f html -o ~/report.html
# The generated HTML links to "assert.py"

If the HTML reports are supposed to just be for filesystem access, then providing
absolute file:// URLs seems like a reasonable fix. If the HTML reports are intended
to live on a web server, then a different solution might be better.

@ehooo ehooo mentioned this issue Mar 18, 2019
@ericwb ericwb added this to the Near Future milestone May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant