diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fbe1fcc..52ea764 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,3 +19,18 @@ jobs: uses: reviewdog/action-shellcheck@v1 - name: Run bandit uses: ./ + - name: Run bandit with a single target + uses: ./ + with: + targets: "test_project" + - name: Run bandit with a list of targets + uses: ./ + with: + targets: | + test_project + - name: Run bandit with a different version + uses: ./ + with: + version: "1.6.3" + targets: | + test_project diff --git a/README.md b/README.md index b40c5a1..a599809 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,9 @@ bandit | Input | type | required | default | description | |:-------------:|:-----------:|:-------------:|:----------------------------:|:-------------:| -| version | `string` | `true` | `1.7.0` | Bandit version to be installed | +| 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/PyCQA/bandit#usage)) | +| options | `string` | `true` | `-r` | Extra options ([possible choices](https://github.com/tj-actions/bandit/blob/rename-bandit-version-to-version/action.yml#L14)) |