Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa07cf5

Browse files
authored
Sync pre-commit, workflow bandit versions (manually) (NVIDIA#913)
* sync pre-commit, workflow bandit versions (manually) * Move `KEEP IN SYNC` comment on `rev` line, to make it more likely that it does not get overlooked after running `pre-commit autoupdate --freeze` * Undo change in .github/dependabot.yml (see NVIDIA#913 (comment))
1 parent aebce8e commit fa07cf5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/bandit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ jobs:
2020
security-events: write
2121
steps:
2222
- name: Perform Bandit Analysis
23-
uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de
23+
# KEEP IN SYNC WITH bandit rev in .pre-commit-config.yaml
24+
# Current runner uses Python 3.8, so the action installs bandit==1.7.10
25+
# via `pip install bandit[sarif]`. If runner Python moves to >=3.9,
26+
# the action will resolve to 1.8.x and you'll need to bump pre-commit.
27+
# (Bandit >=1.8.0 dropped Python 3.8 via Requires-Python metadata.)
28+
uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de # v1.0.0

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ci:
99
autoupdate_branch: ''
1010
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
1111
autoupdate_schedule: quarterly
12-
skip: [bandit]
1312
submodules: false
1413

1514
# Please update the rev: SHAs below with this command:
@@ -66,7 +65,7 @@ repos:
6665
- id: rst-inline-touching-normal
6766

6867
- repo: https://github.com/PyCQA/bandit
69-
rev: 2d0b675b04c80ae42277e10500db06a0a37bae17 # frozen: 1.8.6
68+
rev: "36fd65054fc8864b4037d0918904f9331512feb5" # frozen: 1.7.10 KEEP IN SYNC WITH .github/workflows/bandit.yml
7069
hooks:
7170
- id: bandit
7271
args:

0 commit comments

Comments
 (0)