Unexpected input 'python-version', contradicts README

Open
#27 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, python
Domain
ci-cd, security

Research direction

Start with the README section documenting the action inputs and the action's input definition, then compare them with the valid-input warning from the provided bandit.yaml workflow. Done means the documented inputs and accepted inputs agree, and the workflow no longer reports python-version as unexpected.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
According to the README, there's a python-version| argument but the actual action does not accept it.

Image

This is the output I get in my action:

Warning: Unexpected input(s) 'python-version', valid inputs are ['configfile', 'profile', 'tests', 'skips', 'severity', 'confidence', 'exclude', 'baseline', 'ini', 'targets']

Content of my bandit.yaml file:

name: Bandit

on: [push, pull_request]

jobs:
  analyze:
    runs-on: ubuntu-latest
    permissions:
      # required for all workflows
      security-events: write
      # only required for workflows in private repositories
      actions: read
      contents: read
    steps:
      - name: Checkout code
        uses: actions/checkout@v6
      - name: Perform Bandit Analysis
        uses: PyCQA/bandit-action@v1
        with:
          python-version: '3.13'
Dominant language
No language data
Stars
32
Forks
16
Avg merge
2h 23m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PyCQA/bandit-action

All issues in PyCQA/bandit-action

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.