Compare commits

44 Commits

Author SHA256 Message Date
d608b3a6fb Accepting request 1302232 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only
- Fix tests with libalternatives
- Update to 1.8.6
  * Bump sigstore/cosign-installer from 3.8.2 to 3.9.0
    by @dependabot in (#1279)
  * Bump docker/setup-buildx-action from 3.10.0 to 3.11.1
    by @dependabot in (#1278)
  * Added hint to FreeBSD package in doc/source/integrations.rst
    by @daniel-mohr in (#1282)
  * Bump sigstore/cosign-installer from 3.9.0 to 3.9.1
    by @dependabot in (#1284)
  * Huggingface revision pinning by @lukehinds in (#1281)
- Update to 1.8.5
  * Fix the rendering of the CI/CD doc (#1274)
  * Fix for publish to PyPI failure (#1273)
- from version 1.8.4
  * Add more random functions to B311 check (#1235)
  * Metadata: rename classifier to classifiers (#1237)
  * Bump sigstore/cosign-installer from 3.8.0 to 3.8.1 (#1239)
  * Bump docker/build-push-action from 6.13.0 to 6.14.0 (#1238)
  * Bump docker/build-push-action from 6.14.0 to 6.15.0 (#1240)
  * Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#1241)
  * Bump docker/login-action from 3.3.0 to 3.4.0 (#1245)
  * Bump bandit version in bug template (#1247)
  * Fix traceback from trojansource plugin (#1248)
  * Ensure the man page is built (#1257)
  * Update documentation to cover `--severity-level` and `--confidence-level` (#1254)
  * Use license property in lieu of classifier (#1259)
  * Fix up some of the warnings when building docs (#1258)
  * Add a doc describing various integrations (#1253)
  * Use ubuntu latest for readthedocs build (#1260)
  * Bump docker/build-push-action from 6.15.0 to 6.16.0 (#1261)
  * Bump sigstore/cosign-installer from 3.8.1 to 3.8.2 (#1262)
  * Remove etc from list of temp paths (#1263)
  * Bump docker/build-push-action from 6.16.0 to 6.17.0 (#1265)
  * [pre-commit.ci] pre-commit autoupdate (#1266)
  * Bump docker/build-push-action from 6.17.0 to 6.18.0 (#1268)
  * Add github-actions documentation (#1172)
- Add bandit manpage to %files section
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1302232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=18
2025-09-02 15:58:21 +00:00
bfe886b5d4 - Convert to libalternatives on SLE-16-based and newer systems only
- Fix tests with libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=42
2025-09-01 14:56:04 +00:00
4c84231c4f - Update to 1.8.6
* Bump sigstore/cosign-installer from 3.8.2 to 3.9.0
    by @dependabot in (#1279)
  * Bump docker/setup-buildx-action from 3.10.0 to 3.11.1
    by @dependabot in (#1278)
  * Added hint to FreeBSD package in doc/source/integrations.rst
    by @daniel-mohr in (#1282)
  * Bump sigstore/cosign-installer from 3.9.0 to 3.9.1
    by @dependabot in (#1284)
  * Huggingface revision pinning by @lukehinds in (#1281)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=41
2025-07-23 10:34:08 +00:00
a48cf3feec Accepting request 1288495 from home:glaubitz:branches:devel:languages:python
- Update to 1.8.5
  * Fix the rendering of the CI/CD doc (#1274)
  * Fix for publish to PyPI failure (#1273)
- from version 1.8.4
  * Add more random functions to B311 check (#1235)
  * Metadata: rename classifier to classifiers (#1237)
  * Bump sigstore/cosign-installer from 3.8.0 to 3.8.1 (#1239)
  * Bump docker/build-push-action from 6.13.0 to 6.14.0 (#1238)
  * Bump docker/build-push-action from 6.14.0 to 6.15.0 (#1240)
  * Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#1241)
  * Bump docker/login-action from 3.3.0 to 3.4.0 (#1245)
  * Bump bandit version in bug template (#1247)
  * Fix traceback from trojansource plugin (#1248)
  * Ensure the man page is built (#1257)
  * Update documentation to cover `--severity-level` and `--confidence-level` (#1254)
  * Use license property in lieu of classifier (#1259)
  * Fix up some of the warnings when building docs (#1258)
  * Add a doc describing various integrations (#1253)
  * Use ubuntu latest for readthedocs build (#1260)
  * Bump docker/build-push-action from 6.15.0 to 6.16.0 (#1261)
  * Bump sigstore/cosign-installer from 3.8.1 to 3.8.2 (#1262)
  * Remove etc from list of temp paths (#1263)
  * Bump docker/build-push-action from 6.16.0 to 6.17.0 (#1265)
  * [pre-commit.ci] pre-commit autoupdate (#1266)
  * Bump docker/build-push-action from 6.17.0 to 6.18.0 (#1268)
  * Add github-actions documentation (#1172)
- Add bandit manpage to %files section

OBS-URL: https://build.opensuse.org/request/show/1288495
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=40
2025-06-25 11:30:10 +00:00
1b608a5f87 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=39
2025-06-16 14:45:24 +00:00
f85fcb5a0d Accepting request 1248121 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=17
2025-02-24 14:51:15 +00:00
1200adcf3a Accepting request 1242593 from devel:languages:python
- update to 1.8.2:
  * Clarify "getting started" docs (#963)
  * Remove lxml (B320 & B410) from blacklist (#1212)
  * Add Mercedes-Benz to sponsor list (#1210)
  * Remove more leftover OpenStack references (#1195)
  * Remove Sentry as a sponsor (#1198)
  * Add a JSON to seek funding from the FLOSS/fund (#1194)
  * Update project urls with added links (#1193)
  * Mark Python 3.13 as officially supported (#1192)
  * No need to check httpx client without timeout defined (#1177)
  * Add more insecure cryptography cipher algorithms (#1185)
  * Removal of Python 3.8 support (#1174)
  * Rename doc file to match proper bandit ID (#1183)

  * Replace setattr (#493) @tylerwince
- cli tool, don't build with multiple python versions

OBS-URL: https://build.opensuse.org/request/show/1242593
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=16
2025-02-03 20:44:52 +00:00
d1ee02c7bd - update to 1.8.2:
* Clarify "getting started" docs (#963)
  * Remove lxml (B320 & B410) from blacklist (#1212)
  * Add Mercedes-Benz to sponsor list (#1210)
  * Remove more leftover OpenStack references (#1195)
  * Remove Sentry as a sponsor (#1198)
  * Add a JSON to seek funding from the FLOSS/fund (#1194)
  * Update project urls with added links (#1193)
  * Mark Python 3.13 as officially supported (#1192)
  * No need to check httpx client without timeout defined (#1177)
  * Add more insecure cryptography cipher algorithms (#1185)
  * Removal of Python 3.8 support (#1174)
  * Rename doc file to match proper bandit ID (#1183)
  * Replace setattr (#493) @tylerwince
- cli tool, don't build with multiple python versions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=35
2025-02-03 08:17:08 +00:00
4b08d9eb2e Accepting request 1223777 from devel:languages:python
- Add missing BRs and establish Requires according to pyproject.toml.
- Update to 1.7.10
  * Bump docker/build-push-action from 5.4.0 to 6.0.0
  * Suggested small refactors in assignments
  * Performance improvement in blacklist function
  * Add test for usage of FTP_TLS
  * New check: B113: TrojanSource - Bidirectional control characters
  * Bump docker/build-push-action from 6.0.0 to 6.1.0
  * feat(plugins): add support for httpx in B113
  * Nit: remove unused variable
  * Add recent releases to version choice in bug report
  * Bump docker/build-push-action from 6.1.0 to 6.2.0
  * Bump docker/build-push-action from 6.2.0 to 6.3.0
  * Bump docker/setup-buildx-action from 3.3.0 to 3.4.0
  * Bump docker/setup-buildx-action from 3.4.0 to 3.5.0
  * Bump docker/login-action from 3.2.0 to 3.3.0
  * Bump docker/build-push-action from 6.3.0 to 6.5.0
  * Bump docker/setup-buildx-action from 3.5.0 to 3.6.1
  * Bump docker/build-push-action from 6.5.0 to 6.6.1
  * Bump sigstore/cosign-installer from 3.5.0 to 3.6.0
  * Bump docker/build-push-action from 6.6.1 to 6.7.0
  * Use consistent file naming of docs
  * Pytorch Load / Save Plugin
- from version 1.7.9
  * Bump docker/build-push-action from 5.1.0 to 5.2.0
  * [pre-commit.ci] pre-commit autoupdate
  * New logo for Bandit based on raccoon
  * Start testing on Python 3.13
  * Bump docker/build-push-action from 5.2.0 to 5.3.0
  * Bump docker/setup-buildx-action from 3.1.0 to 3.2.0
  * Bump docker/login-action from 3.0.0 to 3.1.0
  * [pre-commit.ci] pre-commit autoupdate
  * [pre-commit.ci] pre-commit autoupdate
  * Bump docker/setup-buildx-action from 3.2.0 to 3.3.0
  * [pre-commit.ci] pre-commit autoupdate
  * Bump sigstore/cosign-installer from 3.4.0 to 3.5.0
  * [pre-commit.ci] pre-commit autoupdate
  * Updates banner logo so it renders well in dark mode
  * [pre-commit.ci] pre-commit autoupdate
  * Add a sponsor section to README
  * Ensure sarif extra is included as part of doc build
  * Bump docker/login-action from 3.1.0 to 3.2.0
  * [pre-commit.ci] pre-commit autoupdate
  * [pre-commit.ci] pre-commit autoupdate
  * Guard against empty call argument list
  * Bump docker/build-push-action from 5.3.0 to 5.4.0
  * Support configfile in .bandit file
- from version 1.7.8
  * Incorrect tag naming in readme
  * Utilize PyPI's trusted publishing
  * Bump sigstore/cosign-installer from 3.3.0 to 3.4.0
  * Add 1.7.7 to versions of bug template
  * Use datetime to avoid updating copyright year
  * filter data is safe for tarfile extractall
  * Bump docker/setup-buildx-action from 3.0.0 to 3.1.0
  * [B605] Add functions that are vulnerable to shell injection
  * Add a SARIF output formatter
- from version 1.7.7
  * Add the new release to bandit versions of bug template
  * Bump actions/setup-python from 4 to 5
  * Handle variant in how policy is passed in paramiko
  * Flag str.replace as possible sql injection
  * defusedxml: Show correct module name
  * Add tidelift to the sponsor funding list
  * Create a security policy
  * Fix up issues found running Bandit on itself
  * Add random.randbytes to blacklist calls
  * Prepend ./ for files specified as CLI args
  * Rework GitPython dependency to be an extra for bandit-baseline
  * Bump actions/dependency-review-action from 3 to 4
  * Introduce Official Bandit Images
  * Remove markdown formatting in reStructuredText formatted README
  * Downsize the org:repo name by
- Refresh remove-non-test-deps.patch
- Use Python 3.11 on SLE-15 by default
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install

OBS-URL: https://build.opensuse.org/request/show/1223777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=15
2024-11-13 14:28:43 +00:00
a4fe075544 - Add missing BRs and establish Requires according to pyproject.toml.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=33
2024-11-12 17:05:24 +00:00
5550954154 Clean up the SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=32
2024-11-12 15:56:21 +00:00
e548321f35 - Update to 1.7.10
* Bump docker/build-push-action from 5.4.0 to 6.0.0
  * Suggested small refactors in assignments
  * Performance improvement in blacklist function
  * Add test for usage of FTP_TLS
  * New check: B113: TrojanSource - Bidirectional control characters
  * Bump docker/build-push-action from 6.0.0 to 6.1.0
  * feat(plugins): add support for httpx in B113
  * Nit: remove unused variable
  * Add recent releases to version choice in bug report
  * Bump docker/build-push-action from 6.1.0 to 6.2.0
  * Bump docker/build-push-action from 6.2.0 to 6.3.0
  * Bump docker/setup-buildx-action from 3.3.0 to 3.4.0
  * Bump docker/setup-buildx-action from 3.4.0 to 3.5.0
  * Bump docker/login-action from 3.2.0 to 3.3.0
  * Bump docker/build-push-action from 6.3.0 to 6.5.0
  * Bump docker/setup-buildx-action from 3.5.0 to 3.6.1
  * Bump docker/build-push-action from 6.5.0 to 6.6.1
  * Bump sigstore/cosign-installer from 3.5.0 to 3.6.0
  * Bump docker/build-push-action from 6.6.1 to 6.7.0
  * Use consistent file naming of docs
  * Pytorch Load / Save Plugin
- from version 1.7.9
  * Bump docker/build-push-action from 5.1.0 to 5.2.0
  * [pre-commit.ci] pre-commit autoupdate
  * New logo for Bandit based on raccoon
  * Start testing on Python 3.13
  * Bump docker/build-push-action from 5.2.0 to 5.3.0
  * Bump docker/setup-buildx-action from 3.1.0 to 3.2.0
  * Bump docker/login-action from 3.0.0 to 3.1.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=31
2024-11-12 01:12:53 +00:00
0e92b5326d Accepting request 1133415 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1133415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=14
2023-12-15 20:50:20 +00:00
8bba013141 Accepting request 1133137 from home:pgajdos:python
pmmu version update

OBS-URL: https://build.opensuse.org/request/show/1133137
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=29
2023-12-15 12:11:38 +00:00
c2d8ff1ddd Accepting request 1100808 from devel:languages:python
- update to 1.7.5:
  * Added a bit more \`project\_urls\`
  * Check for github action updates monthly
  * Improve handling nosec for multi-line strings
  * Improve detecting SQL injections in f-strings
  * Correct build status badge in README
  * Fix breaking build due to new tox
  * DOC: Add explanation on how to use pre-commit with config
    file
  * Add official Python 3.11 support
  * remove py2 exec example in docs
  * Typo fix
  * [docs] Mention \`exclude\_dirs\` option available in TOML and
    YAML
  * Fix AttributeError on detect of tuple assign condition
  * Fix json and yaml formatters to respect num lines
  * Fixup some invalid pickle testing
  * Pass correct number of arguments to match the \`%s\`
    placeholders.
  * Remove python 2 reference in docs
  * Fix filename of B202 in docs
  * weak\_cryptographic\_key assumes positional arg
  * Check for deprecated TLS 1.1
  * Adding tarfile.extractall() plugin with examples
  * Fix issue #453 jinja2 template select\_autoescape when using
    jinja2.select\_autoescape
  * Fix a false positive condition yaml\_load
  * Add case for global exec
  * Docs for request without timeout has dead link
  * Blacklist pandas read\_pickle and add functional test for it

OBS-URL: https://build.opensuse.org/request/show/1100808
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=13
2023-07-27 14:50:52 +00:00
20fbe3b396 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=27 2023-07-26 10:36:23 +00:00
12273fc711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=26 2023-07-26 06:51:57 +00:00
d71939e9e2 - update to 1.7.5:
* Added a bit more \`project\_urls\`
  * Check for github action updates monthly
  * Improve handling nosec for multi-line strings
  * Improve detecting SQL injections in f-strings
  * Correct build status badge in README
  * Fix breaking build due to new tox
  * DOC: Add explanation on how to use pre-commit with config
    file
  * Add official Python 3.11 support
  * remove py2 exec example in docs
  * Typo fix
  * [docs] Mention \`exclude\_dirs\` option available in TOML and
    YAML
  * Fix AttributeError on detect of tuple assign condition
  * Fix json and yaml formatters to respect num lines
  * Fixup some invalid pickle testing
  * Pass correct number of arguments to match the \`%s\`
    placeholders.
  * Remove python 2 reference in docs
  * Fix filename of B202 in docs
  * weak\_cryptographic\_key assumes positional arg
  * Check for deprecated TLS 1.1
  * Adding tarfile.extractall() plugin with examples
  * Fix issue #453 jinja2 template select\_autoescape when using
    jinja2.select\_autoescape
  * Fix a false positive condition yaml\_load
  * Add case for global exec
  * Docs for request without timeout has dead link
  * Blacklist pandas read\_pickle and add functional test for it

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=25
2023-07-24 20:24:10 +00:00
28f27aeaae Accepting request 1031533 from devel:languages:python
- Remove not needed python-six dependency
- Use autosetup instead of setup + patch
- More specific sitelib package in %files

OBS-URL: https://build.opensuse.org/request/show/1031533
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=12
2022-10-27 11:54:56 +00:00
58e5430d73 - Remove not needed python-six dependency
- Use autosetup instead of setup + patch
- More specific sitelib package in %files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=23
2022-10-27 11:20:23 +00:00
468486cc50 Accepting request 962068 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/962068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=11
2022-03-16 19:20:43 +00:00
390eb17e92 Accepting request 962061 from home:pgajdos:python
- version update to 1.7.4
  1.7.4
  -----
  * Add 1.7.4 in issue template (#846)
  * core/config: Fix ConfigError missing argument if toml is missing (#845)
  * Add version 1.7.3 to dropdown (#833)
  * Fix traceback in hashlib\_insecure\_functions (#834)
  1.7.3
  -----
  * Build of artifact fails if raw directive used (#831)
  * Center the bandit logo in readme (#823)
  * Target Python >= 3.7 in pre-commit hooks (#830)
  * Inaccurate message in hashlib check (#827)
  * Improve performance of linerange (#629)
  * Use CWE link in HTML formatter (#825)
  * Use versioned links to docs (#819)
  * Fix root doc for readthedocs (#818)
  * Fix up some warnings and errors in docs (#817)
  * Test on operating systems we can support (#804)
  * Cannot seek stdin on pipe (#496)
  * Respect color environment variables if set (#813)
  * Show usage with no arguments (#814)
  * Cleanup the README
  * Fix references to the default branch name (#810)
  * Better hashlib check for Python 3.9 (#805)
  * Check for hardcoded passwords in class attributes (#766)
  *  Add new plugin to check use of pyghmi (#803)
  * Remove redundant Python 3.6 code (#802)
  * Check value of usedforsecurity for hashlib (#798)
  * Change up how CWE is formatted (#788)

OBS-URL: https://build.opensuse.org/request/show/962061
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=21
2022-03-16 07:35:58 +00:00
5433bfc32c Accepting request 951974 from devel:languages:python
- update to 1.7.2:
  * Correctly define extras in \`setup.cfg\` (#755)
  * Remove leftover openstack code (#778)
  * Added snmp\_security check plugin for various SNMP checks (#403)
  * Fix README.rst (#365)
  * Fixup typo (#769)
  * Drop end-of-life Python 3.6 (#777)
  * Drop end-of-life Python 3.5 (#746)
  * Start using auto-formatters (#754)
  * Create FUNDING.yml (#774)
  * test\_help\_arg: remove assert on 'optional arguments' (#752)
  * Fix broken reported URL link for B107 (#751)

- update to 1.7.1:
  * fix reading initial values from .bandit
  * Always use a Loader in yaml.load
  * PEP-518 support: configure bandit via pyproject.toml
  * document that random.choices() isn't secure either
  * Fix syntax errors in bug report
  * Update bug\_report.yaml
  * Fix syntax error in bug report
  * Use new issue template format
  * Update README.rst
  * Mock part of python 3.x
  * Add license to package installation metadata
  * #694 Bandit fails when using importlib with named arguments
  * Add string options for severity and confidence
  * Add support for Python 3.9
  * Create config.yml
  * Add default labels to issues

OBS-URL: https://build.opensuse.org/request/show/951974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=10
2022-02-06 22:54:46 +00:00
772e93e166 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=20 2022-02-06 17:32:02 +00:00
014c1eb61d - update to 1.7.2:
* Correctly define extras in \`setup.cfg\` (#755)
  * Remove leftover openstack code (#778)
  * Added snmp\_security check plugin for various SNMP checks (#403)
  * Fix README.rst (#365)
  * Fixup typo (#769)
  * Drop end-of-life Python 3.6 (#777)
  * Drop end-of-life Python 3.5 (#746)
  * Start using auto-formatters (#754)
  * Create FUNDING.yml (#774)
  * test\_help\_arg: remove assert on 'optional arguments' (#752)
  * Fix broken reported URL link for B107 (#751)

- update to 1.7.1:
  * fix reading initial values from .bandit
  * Always use a Loader in yaml.load
  * PEP-518 support: configure bandit via pyproject.toml
  * document that random.choices() isn't secure either
  * Fix syntax errors in bug report
  * Update bug\_report.yaml
  * Fix syntax error in bug report
  * Use new issue template format
  * Update README.rst
  * Mock part of python 3.x
  * Add license to package installation metadata
  * #694 Bandit fails when using importlib with named arguments
  * Add string options for severity and confidence
  * Add support for Python 3.9
  * Create config.yml
  * Add default labels to issues

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=19
2022-02-06 10:12:57 +00:00
d50c359761 Accepting request 929843 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/929843
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=9
2021-11-08 16:24:15 +00:00
2b27259908 Accepting request 927770 from home:pgajdos:python
- %check: use %pyunittest rpm macro
- added sources
  + _multibuild

OBS-URL: https://build.opensuse.org/request/show/927770
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=18
2021-11-06 10:28:58 +00:00
667dade2ae Accepting request 877896 from devel:languages:python
- Update to 1.7.0:
  * Remove blacklist call to input() (#662) @ericwb
  * Remove universal support on the wheel (#655) @ericwb
  * Give some tips on how to resolve B101 in the doc (#616) @xuhdev
  * Don't show progress information on --quiet (#641) @fniessink
  * Add skip configuration to assert_used (#633) @wilbertom
  * Drop Python2 build, test, and install (#615) @ericwb
  * [FIX] blacklist: fix typo in import_ftplib (#601) @Yenthe666
  * Resolve 'NoneType' object has no attribute 'id'Traceback in
    django_mark_safe (#598) @ehooo
  * Fix typo for activating venv (#590) @bavedarnow
  * Bump pyyaml (#588) @dosisod
  * Fix colorama not being disabled after being used (#586) @adambenali
  * Cleanup some typos in recent contributor guide (#585) @ericwb
  * [DOC] Support python3 venv creation (#583) @look4regev
  * Add sha1 to the list of insecure hashes (#561) @ericwb
  * Fix docs for B610,B611,B703 (#555) @amacfie
  * Add a section explaining "nosec" (#554) @exhuma
  * Add official support of Python 3.8 (#547) @ericwb
  * Ignore common directories by default (#544) @ericwb
  * Add shelve to the pickle blacklists (#542) @auscompgeek
  * Remove obsolete "sudo" keyword. (#538) @jugmac00
  * Update test requirements to latest versions (#535) @ericwb
  * Fix readme file on Extending Bandit on list things (#534) @Aurel10
  * fix the documentation file README.rst (#533) @Aurel10
  * Cleanup comments after #510 (#532) @florczakraf
  * Use SPDX license identifier instead of bulky headers (#530) @ericwb
  * fix B603 docstring (#524) @graingert
  * Add type checking to name node of hashlib_new (#516) @teeann
  * --exit-zero option (#510) @maciejstromich
  * Fix 3.8 errors (#509) @tylerwince
  * Add several ini options for .bandit file (#508) @vuolter
  * get_url returns different urls calling twice (bug #506) (#507) @ehooo
  * Replace setattr (#493) @tylerwince 
- Refresh remove-non-test-deps.patch

OBS-URL: https://build.opensuse.org/request/show/877896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=8
2021-03-10 07:57:14 +00:00
bd37878b18 - Update to 1.7.0:
* Remove blacklist call to input() (#662) @ericwb
  * Remove universal support on the wheel (#655) @ericwb
  * Give some tips on how to resolve B101 in the doc (#616) @xuhdev
  * Don't show progress information on --quiet (#641) @fniessink
  * Add skip configuration to assert_used (#633) @wilbertom
  * Drop Python2 build, test, and install (#615) @ericwb
  * [FIX] blacklist: fix typo in import_ftplib (#601) @Yenthe666
  * Resolve 'NoneType' object has no attribute 'id'Traceback in
    django_mark_safe (#598) @ehooo
  * Fix typo for activating venv (#590) @bavedarnow
  * Bump pyyaml (#588) @dosisod
  * Fix colorama not being disabled after being used (#586) @adambenali
  * Cleanup some typos in recent contributor guide (#585) @ericwb
  * [DOC] Support python3 venv creation (#583) @look4regev
  * Add sha1 to the list of insecure hashes (#561) @ericwb
  * Fix docs for B610,B611,B703 (#555) @amacfie
  * Add a section explaining "nosec" (#554) @exhuma
  * Add official support of Python 3.8 (#547) @ericwb
  * Ignore common directories by default (#544) @ericwb
  * Add shelve to the pickle blacklists (#542) @auscompgeek
  * Remove obsolete "sudo" keyword. (#538) @jugmac00
  * Update test requirements to latest versions (#535) @ericwb
  * Fix readme file on Extending Bandit on list things (#534) @Aurel10
  * fix the documentation file README.rst (#533) @Aurel10
  * Cleanup comments after #510 (#532) @florczakraf
  * Use SPDX license identifier instead of bulky headers (#530) @ericwb
  * fix B603 docstring (#524) @graingert
  * Add type checking to name node of hashlib_new (#516) @teeann
  * --exit-zero option (#510) @maciejstromich
  * Fix 3.8 errors (#509) @tylerwince
  * Add several ini options for .bandit file (#508) @vuolter
  * get_url returns different urls calling twice (bug #506) (#507) @ehooo
  * Replace setattr (#493) @tylerwince 
- Refresh remove-non-test-deps.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=16
2021-03-09 06:57:46 +00:00
97c6bdc30f Accepting request 871632 from devel:languages:python
- cli tool, don't build with multiple python versions

OBS-URL: https://build.opensuse.org/request/show/871632
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=7
2021-02-15 22:18:19 +00:00
17ea9d898f - cli tool, don't build with multiple python versions
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=14
2021-02-13 10:21:24 +00:00
5e288d750c Accepting request 811559 from devel:languages:python
- drop oslosphinx dependency

OBS-URL: https://build.opensuse.org/request/show/811559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=6
2020-06-05 18:19:53 +00:00
eb31250c0a - drop oslosphinx dependency
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=12
2020-06-04 16:16:08 +00:00
b12e2a3988 Accepting request 748705 from devel:languages:python
- Skip out python2 build as the dependencies are unresolvable

OBS-URL: https://build.opensuse.org/request/show/748705
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=5
2019-11-14 23:32:55 +00:00
Tomáš Chvátal
c8b47021fb - Skip out python2 build as the dependencies are unresolvable
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=10
2019-11-14 15:05:25 +00:00
88e5cb8ff9 Accepting request 718178 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/718178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=4
2019-07-24 18:36:40 +00:00
Tomáš Chvátal
f1a0ccf07e Accepting request 718177 from home:pgajdos
- version update to 1.6.2
  * add test for regression and fix directory exclusion without wildcards (#489)
  * add namespaces for parent attributes (#492)
  * Performance fix (#502)

OBS-URL: https://build.opensuse.org/request/show/718177
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=8
2019-07-24 10:22:45 +00:00
a29a6cdf12 Accepting request 703511 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/703511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=3
2019-05-16 20:10:31 +00:00
Tomáš Chvátal
26c7165dfe Accepting request 703510 from home:bryanstephenson:branches:devel:languages:python
- Update to version 1.6.0
  * Add namespaces for parent attributes

OBS-URL: https://build.opensuse.org/request/show/703510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=6
2019-05-16 18:10:55 +00:00
Stephan Kulow
4b78364c77 Accepting request 682711 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/682711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=2
2019-03-10 08:38:41 +00:00
Tomáš Chvátal
47ec4dd881 Accepting request 682659 from home:jayvdb:coala:python3-bears
- Add missing dependency on stestr >= 1.0.0

OBS-URL: https://build.opensuse.org/request/show/682659
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=4
2019-03-08 06:46:29 +00:00
5d7d36ed8a Accepting request 681223 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/681223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bandit?expand=0&rev=1
2019-03-05 11:20:30 +00:00
Tomáš Chvátal
a87dbd271e OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=2 2019-03-04 09:09:55 +00:00
Tomáš Chvátal
c3fa988026 Accepting request 678408 from home:jayvdb:coala:python3-bears
- Add remove-non-test-deps.patch to remove build dependencies not needed
  to build, including hacking which requires an unavailable version of flake8
- Activate tests
- Use %license
- Remove unnecessary devel build dependency
- Update to v1.5.1

OBS-URL: https://build.opensuse.org/request/show/678408
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=1
2019-03-04 09:09:00 +00:00
7 changed files with 84 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59ed5caf5d92b6ada4bf65bc6437feea4a9da1093384445fed4d472acc6cff7b
size 4228540

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72ce7bc9741374d96fb2f1c9a8960829885f1243ffde743de70a19cee353e8f3
size 1977532

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e00ad5a6bc676c0954669fe13818024d66b70e42cf5adb971480cf3b671e835f
size 4228832

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5847beb654d309422985c36644649924e0ea4425c76dec2e89110b87506193a
size 4232005

3
bandit-1.8.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dbfe9c25fc6961c2078593de55fd19f2559f9e45b99f1272341f5b95dea4e56b
size 4240271

View File

@@ -1,3 +1,59 @@
-------------------------------------------------------------------
Mon Sep 1 12:44:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
- Fix tests with libalternatives
-------------------------------------------------------------------
Wed Jul 23 07:18:53 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.8.6
* Bump sigstore/cosign-installer from 3.8.2 to 3.9.0
by @dependabot in (#1279)
* Bump docker/setup-buildx-action from 3.10.0 to 3.11.1
by @dependabot in (#1278)
* Added hint to FreeBSD package in doc/source/integrations.rst
by @daniel-mohr in (#1282)
* Bump sigstore/cosign-installer from 3.9.0 to 3.9.1
by @dependabot in (#1284)
* Huggingface revision pinning by @lukehinds in (#1281)
-------------------------------------------------------------------
Wed Jun 25 10:03:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.8.5
* Fix the rendering of the CI/CD doc (#1274)
* Fix for publish to PyPI failure (#1273)
- from version 1.8.4
* Add more random functions to B311 check (#1235)
* Metadata: rename classifier to classifiers (#1237)
* Bump sigstore/cosign-installer from 3.8.0 to 3.8.1 (#1239)
* Bump docker/build-push-action from 6.13.0 to 6.14.0 (#1238)
* Bump docker/build-push-action from 6.14.0 to 6.15.0 (#1240)
* Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#1241)
* Bump docker/login-action from 3.3.0 to 3.4.0 (#1245)
* Bump bandit version in bug template (#1247)
* Fix traceback from trojansource plugin (#1248)
* Ensure the man page is built (#1257)
* Update documentation to cover `--severity-level` and `--confidence-level` (#1254)
* Use license property in lieu of classifier (#1259)
* Fix up some of the warnings when building docs (#1258)
* Add a doc describing various integrations (#1253)
* Use ubuntu latest for readthedocs build (#1260)
* Bump docker/build-push-action from 6.15.0 to 6.16.0 (#1261)
* Bump sigstore/cosign-installer from 3.8.1 to 3.8.2 (#1262)
* Remove etc from list of temp paths (#1263)
* Bump docker/build-push-action from 6.16.0 to 6.17.0 (#1265)
* [pre-commit.ci] pre-commit autoupdate (#1266)
* Bump docker/build-push-action from 6.17.0 to 6.18.0 (#1268)
* Add github-actions documentation (#1172)
- Add bandit manpage to %files section
-------------------------------------------------------------------
Mon Jun 16 14:45:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Feb 24 10:23:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bandit
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,10 +26,15 @@
%endif
# CLI tool, no module
%define pythons python3
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%bcond_without builddocs
%{?sle15_python_module_pythons}
Name: python-bandit
Version: 1.8.3
Version: 1.8.6
Release: 0
Summary: Security oriented static analyser for Python code
License: Apache-2.0
@@ -42,9 +47,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-GitPython
Requires: python-GitPython >= 1.0.1
Requires: python-PyYAML
Requires: python-PyYAML >= 5.3.1
Requires: python-jschema-to-python >= 1.2.3
Requires: python-rich
@@ -52,9 +55,14 @@ Requires: python-sarif-om
Requires: python-stestr >= 1.0.0
Requires: python-stevedore >= 1.20.0
Requires: (python-tomli >= 1.2.3 if python-base < 3.11)
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%if %{python_version_nodots} < 311
Requires: python-tomli
%endif
@@ -102,6 +110,11 @@ sed -i '/^#!/d' bandit/__main__.py
%python_clone -a %{buildroot}%{_bindir}/bandit
%python_clone -a %{buildroot}%{_bindir}/bandit-config-generator
%python_clone -a %{buildroot}%{_bindir}/bandit-baseline
%python_group_libalternatives bandit bandit-config-generator bandit-baseline
# libalternatives binaries break the tests
%if %{with libalternatives}
sed -i 's/import sys/import sys; sys.argv[0] = "bandit"/' %{buildroot}%{_bindir}/bandit-3*
%endif
%endif
%if %{with test}
@@ -110,19 +123,24 @@ sed -i '/^#!/d' bandit/__main__.py
%endif
%if !%{with test}
%post
%{python_install_alternative bandit bandit-config-generator bandit-baseline }
%endif
%if !%{with test}
%post
%python_install_alternative bandit bandit.1 bandit-config-generator bandit-baseline
%postun
%python_uninstall_alternative bandit
%pre
%python_libalternatives_reset_alternative bandit
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc AUTHORS ChangeLog README.rst
%{_mandir}/man1/bandit.1%{?ext_man}
%python_alternative %{_bindir}/bandit
%python_alternative %{_bindir}/bandit-config-generator
%python_alternative %{_bindir}/bandit-baseline