Skip to content

Commit

Permalink
Merge pull request #21 from tj-actions/rename-bandit-version-to-version
Browse files Browse the repository at this point in the history
Renamed bandit_version to version
  • Loading branch information
jackton1 authored Apr 9, 2021
2 parents c6e2706 + ea3454a commit 92ab823
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bandit
- name: Run bandit
uses: tj-actions/[email protected]
with:
bandit_version: "1.7.0"
version: "1.7.0"
targets: | # or a single string "."
test_project
options: "-r"
Expand All @@ -36,7 +36,7 @@ bandit

| Input | type | required | default | description |
|:-------------:|:-----------:|:-------------:|:----------------------------:|:-------------:|
| bandit-version | `string` | `true` | `1.7.0` | Bandit version to be installed ([possible choices](https://github.com/PyCQA/bandit/tags)) |
| version | `string` | `true` | `1.7.0` | Bandit version to be installed ([possible choices](https://github.com/PyCQA/bandit/tags)) |
| targets | `string[] or string` | `true` | `.` | Targets to run bandit checks |
| options | `string` | `true` | `-r` | Extra options ([possible choices](https://github.com/tj-actions/bandit/blob/rename-bandit-version-to-version/action.yml#L14)) |

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run bandit
description: A security linter from PyCQA
author: tj-actions
inputs:
bandit_version:
version:
description: bandit version to be used
required: true
default: '1.7.0'
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

pip3 install bandit=="${INPUT_BANDIT_VERSION}"
pip3 install bandit=="${INPUT_VERSION}"

# shellcheck disable=SC2086
bandit ${INPUT_OPTIONS} ${INPUT_TARGETS}

0 comments on commit 92ab823

Please sign in to comment.