Skip to content

Commit

Permalink
Support the bandit check by GitHub Action (sonic-net#2358)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xumia authored and preetham-singh committed Nov 18, 2022
1 parent 38d8b81 commit c26927e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Empty file added .bandit
Empty file.
20 changes: 20 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow is to do the bandit check
#

name: bandit
on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
bendit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: bandit
uses: jpetrucciani/bandit-check@master
with:
path: '.'

0 comments on commit c26927e

Please sign in to comment.