Skip to content

Commit 3fd537b

Browse files
authored
Support the bandit check by GitHub Action (sonic-net#2358)
What I did Support the bandit check by GitHub Action to find out the potential security issues in the python code. How I did it Add the bandit check action in GitHub workflow
1 parent 491d3d3 commit 3fd537b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.bandit

Whitespace-only changes.

.github/workflows/bandit.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This workflow is to do the bandit check
2+
#
3+
4+
name: bandit
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
jobs:
13+
bendit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: bandit
18+
uses: jpetrucciani/bandit-check@master
19+
with:
20+
path: '.'

0 commit comments

Comments
 (0)