Skip to content

Unexpected input 'python-version', contradicts README #27

@aaossa

Description

@aaossa

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions