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

[TS-634] [BUG] .bandit file is used as config, should be ini #62

Open
jkowalleck opened this issue Oct 21, 2023 · 3 comments · May be fixed by #63
Open

[TS-634] [BUG] .bandit file is used as config, should be ini #62

jkowalleck opened this issue Oct 21, 2023 · 3 comments · May be fixed by #63
Labels
jira-issue Issue tracked on JIRA

Comments

@jkowalleck
Copy link

observed

If .bandit file is found, it is run with bandit -c .bandit. (see above)
This is wrong.

expected

.bandit file is expected to be in INI format and must be run with bandit --ini .bandit.

https://bandit.readthedocs.io/en/latest/config.html#

To use this, put an INI file named .bandit in your project’s directory. [...]

contact

private lazy val nativeConfigFileNames = Set("bandit.yml", ".bandit")

BTW: the bandit.yml is a config, not an INI, and is correctly called with bandit -c bandit.yml

@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Oct 21, 2023
@github-actions github-actions bot changed the title [BUG] .bandit is run as config, should be ini [TS-634] [BUG] .bandit is run as config, should be ini Oct 21, 2023
@github-actions
Copy link

Internal ticket created : TS-634

@jkowalleck
Copy link
Author

impact:
.bandit file is in INI format.
if this file is loaded via -c instead of --ini, then bandit crashes, causing your docker image to crash on runtime.

@jkowalleck jkowalleck changed the title [TS-634] [BUG] .bandit is run as config, should be ini [TS-634] [BUG] .bandit file is used as config, should be ini Oct 23, 2023
@jkowalleck jkowalleck linked a pull request Oct 23, 2023 that will close this issue
@jkowalleck
Copy link
Author

possible fix: #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant