Commit Graph

18 Commits

Author SHA1 Message Date
lhinds 2d2170273b Project Migration to PyCQA
This change rehomes the project to PyCQA[1] as reported to the
openstack-dev mailing list [1]

[0] https://github.com/PyCQA/bandit
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-April/129386.html

Change-Id: I6aad329a60799ea24a3d9bc49e35c3c35ed9dc3b
2018-05-04 06:59:50 +02:00
OpenStack Proposal Bot e9b9e2f3c6 Updated from global requirements
Change-Id: I4ae52ab3515bf59010b4dff3c15c35d6e42a6ef0
2018-03-04 09:59:08 +00:00
OpenStack Proposal Bot e907ddd94e Updated from global requirements
Change-Id: Ic98daa2b0750da0240ac1d4f9f4e4bc504a7ac07
2017-11-23 18:40:40 +00:00
OpenStack Proposal Bot d54a65f0f0 Updated from global requirements
Change-Id: I9f572d41be228b523bc048cf491812016947d5b5
2017-08-18 11:28:07 +00:00
OpenStack Proposal Bot ac2145ab7d Updated from global requirements
Change-Id: Ia0dcd4aa507f4babc64b503419bc5198ed6064eb
2017-03-02 00:20:25 -08:00
OpenStack Proposal Bot 25a8c9de72 Updated from global requirements
Change-Id: I75b911d322bd5751bf0b7407852c6a34967d8152
2016-10-06 16:53:41 +00:00
OpenStack Proposal Bot 8e76fcb048 Updated from global requirements
Change-Id: I3ea29a9a036c0f5a11769af59c0a46ae81c6eef6
2016-09-30 19:57:13 +00:00
OpenStack Proposal Bot f5862e96b6 Updated from global requirements
Change-Id: Ibd01f224c105dd926a6df80280553d89cf18d4a1
2016-07-17 23:51:35 +00:00
OpenStack Proposal Bot 36e2f37b42 Updated from global requirements
Change-Id: I3e7b0ac8ab61fa03d50f4eba95b54964629c9cf3
2016-05-10 00:42:41 +00:00
OpenStack Proposal Bot 9cc2609e69 Updated from global requirements
Change-Id: I1b45ad4b1d6f2f1c8680c4a594673cec378d08d0
2016-04-19 12:22:11 +00:00
Travis McPeak 54a06aaebb Making config optional
This commit removes the requirement for having a config file.
Sometimes projects may want to use one to list out tests, define
a profile, or override a setting, but they are no longer required.

Change-Id: I6e467f58b2b27cae647901ac2c3f75a764e74c0c
2016-02-22 08:19:22 -08:00
OpenStack Proposal Bot d1acc8efb1 Updated from global requirements
Change-Id: Icf1abab5ac8a56da17d9a6389664d0b4049250e8
2016-01-16 03:25:12 +00:00
Travis McPeak 00d59dee2c Adding bandit-baseline tool
This commit adds a tool which will run Bandit against the parent
commit of a current branch, and then run Bandit in baseline mode
using the parent's results as the baseline.  Any options that are
supplied to the script will be passed as options to Bandit (for
example severity filters, targets, etc).

By including this tool we can allow projects to run Bandit
baseline as part of their existing tox jobs.

Change-Id: Iaa1314aa348c7c5ca03c5c8b7dcfee456f279e56
2015-12-10 15:50:49 -08:00
OpenStack Proposal Bot e7ff24912b Updated from global requirements
Change-Id: Ib4c1ef58a8d6d378295ef3be38696ba7f164c354
2015-10-02 16:25:32 +00:00
Dave Walker (Daviey) 78643c5b21 Install word_list, raise exception if cannot find
Previously, the default bandit.yaml config file had an entry
for a relative word-list which is only really useful if
running bandit from git, as the path is both relative but
also the default word-list is not installed by the bandit
python package.

If the word-list from the config cannot be found, the
current behavior is to silently continue with an empty set,
meaning that this test does not function at all - giving a
false sense of assurance.

This change installs the default word_list to:
  - /usr/local/share/bandit/wordlist/default-passwords

The config file now supports "(site_data_dir)" for
substitution, which is replaced by distro standard site_data
locations (including /usr/local and /usr).

The first substitution attempted is still relative to the
pwd, to allow the current working tree (and unit tests) to
function).

Crucially, this change now raises an exception if the
declared word-list cannot be found.

Closes-Bug: #1451575
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
Change-Id: Ia090ee6b16866d374191c03de55529fbd6a10c99
2015-07-14 22:13:12 +01:00
Ian Cordasco 1c4d8dfd40 Add extension entry-points and loading
This allows Bandit to be extended by third-party packages with both
plugins and formatters. It also updates Bandit's existing in-tree
formatters to be loaded by the plugin manager. When running

    $ bandit -h

The loaded plugins will be displayed to the user if any are installed.

Change-Id: I102277dcd9481f2573028a436e910eda10011d91
2015-06-19 19:59:35 -05:00
Ian Cordasco e7bf93f742 Smooth over some differences with six
In the effort to port bandit to python 3, we need to start depending on
some tools to make the porting easier. This adds a dependency on six and
takes care of the two cases where we call iteritems.

Change-Id: I2e687713de7f910104ab1f7c62e7c677052993c4
2015-06-01 14:24:47 -05:00
Tim Kelsey 8e6697b063 Making Bandit into an installable package and adding tox tests
This large change makes bandit into an installable packahge, needed
for tox testing. I have added the tox testing scaffolding but no
real tests, they will come in a later change. I have also disabled
all failing PEP8 test (lots) since I have changed enough stuff for
one patch. I'll start re-enabling and fixing PEP8 stuff soon.

Change-Id: I774ed9149f285e4e2bceacda0484a7e2a934a3aa
2014-10-22 10:15:28 +01:00