Allow pinning Bandit version as an action input parameter?

Open
#13 0 comments 1 reaction 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
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions, python
Domain
ci-cd, security

Research direction

Start with action.yml around line 80, where pip install currently allows Bandit to float. Trace the action input definitions and installation command, then verify that a supplied version such as 1.8.3 is used while the existing floating behavior remains the default.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
Currently we let pip install float:
https://github.com/PyCQA/bandit-action/blob/b44244a5ce8d5c4963550acfc922273f6a89e97f/action.yml#L80
However, we'd like to have a precise control over the bandit version in use for security purposes.

Describe the solution you'd like
Allow it to be set as an action input:

      - name: Perform Bandit Analysis
        uses: PyCQA/bandit-action@v1
        with:
          version: 1.8.3

It is fine to keep the current behavior (i.e. default to let it float if not set).

Describe alternatives you've considered
n/a

Additional context
n/a

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.