Visitar URL original
Comparing 1.9.3...1.9.4 · PyCQA/bandit · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PyCQA/bandit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.9.3
Choose a base ref
...
head repository: PyCQA/bandit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.9.4
Choose a head ref
  • 8 commits
  • 10 files changed
  • 7 contributors

Commits on Jan 26, 2026

  1. chore: fixed some typos in comments (#1351)

    Co-authored-by: Jakob Guldberg Aaes <jakob1379@gmali.com>
    jakob1379 and Jakob Guldberg Aaes authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    c0def6c View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2026

  1. Bump docker/login-action from 3.6.0 to 3.7.0 (#1353)

    Bumps [docker/login-action](https://github.com/docker/login-action) from 3.6.0 to 3.7.0.
    - [Release notes](https://github.com/docker/login-action/releases)
    - [Commits](docker/login-action@5e57cd1...c94ce9f)
    
    ---
    updated-dependencies:
    - dependency-name: docker/login-action
      dependency-version: 3.7.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 3, 2026
    Configuration menu
    Copy the full SHA
    ff646fd View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2026

  1. Bump docker/build-push-action from 6.18.0 to 6.19.2 (#1357)

    Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.18.0 to 6.19.2.
    - [Release notes](https://github.com/docker/build-push-action/releases)
    - [Commits](docker/build-push-action@2634353...10e90e3)
    
    ---
    updated-dependencies:
    - dependency-name: docker/build-push-action
      dependency-version: 6.19.2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 16, 2026
    Configuration menu
    Copy the full SHA
    e418b79 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2026

  1. Fix B613 crash when reading from stdin (#1361)

    * Fix B613 crash when reading from stdin
    
    The trojansource plugin opened `context.filename` directly as a file,
    but when reading from stdin the filename is the sentinel string
    `'<stdin>'`, causing a FileNotFoundError.
    
    Use `context.file_data` (the already-opened binary stream) instead of
    re-opening the file. This fixes stdin support and avoids an unnecessary
    second file open for regular files.
    
    Fixes #1182
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Feb 22, 2026
    Configuration menu
    Copy the full SHA
    b69b336 View commit details
    Browse the repository at this point in the history
  2. Include filename in nosec 'no failed test' warning (#1363)

    * Include filename in nosec "no failed test" warning
    
    The warning about a nosec comment with no matching failed test only
    included the line number, making it hard to locate the issue in
    multi-file scans. Add the filename so the warning reads:
    
      nosec encountered (B608), but no failed test on file src/foo.py:42
    
    Fixes #1269
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Feb 22, 2026
    Configuration menu
    Copy the full SHA
    e27493f View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2026

  1. Fix B615 false positive when revision is set via variable (#1358)

    Fix B615 false positive when revision is a variable or expression
    
    When `revision` or `commit_id` is passed as a variable, attribute,
    subscript, or other non-literal expression, `get_call_arg_value()`
    cannot resolve the actual value. This caused false positives because
    the check treated unresolvable values as missing.
    
    Inspect the raw AST keywords before calling `get_call_arg_value()`.
    If a `revision` or `commit_id` keyword has a non-Constant value
    (Name, Attribute, Subscript, Call, etc.), give the user the benefit
    of the doubt and suppress the warning.
    
    Fixes #1345
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Fridayai700 and claude authored Feb 23, 2026
    Configuration menu
    Copy the full SHA
    8f2f928 View commit details
    Browse the repository at this point in the history
  2. Lower version guard in check_ast_node to Python 3.12 (#1355)

    The version guard for deprecated AST node types (Num, Str, Bytes,
    Ellipsis, NameConstant) currently activates only on Python >= 3.14,
    where these types are removed. However, these types emit
    DeprecationWarning on Python 3.12 and 3.13 when accessed via getattr.
    
    Lower the guard from (3, 14) to (3, 12) to avoid triggering
    DeprecationWarning on Python 3.12-3.13. The early return behavior is
    identical: the node name is known-valid and is returned directly,
    skipping the unnecessary getattr call.
    rcgray authored Feb 23, 2026
    Configuration menu
    Copy the full SHA
    c8c8a55 View commit details
    Browse the repository at this point in the history
  3. Fix B106 reporting wrong line number on multiline function calls (#1360)

    B106 (hardcoded_password_funcarg) reported the line of the function
    call node rather than the line of the keyword argument containing the
    hardcoded password. This made it difficult to locate the actual issue
    in multiline calls, and caused `# nosec` placed on the correct line
    to be ineffective.
    
    Pass the keyword value's lineno to the Issue so the reported location
    points to the actual hardcoded string, not the call.
    
    Fixes #1328
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Fridayai700 and claude authored Feb 23, 2026
    Configuration menu
    Copy the full SHA
    92ae8b8 View commit details
    Browse the repository at this point in the history
Loading