From da902fc02f3d5f61f00b4bb176e7fb7468a37c88 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:34:37 +0800 Subject: [PATCH] Support the bandit check by GitHub Action (#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 --- .bandit | 0 .github/workflows/bandit.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .bandit create mode 100644 .github/workflows/bandit.yml diff --git a/.bandit b/.bandit new file mode 100644 index 0000000000..e69de29bb2 diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml new file mode 100644 index 0000000000..954292cc27 --- /dev/null +++ b/.github/workflows/bandit.yml @@ -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: '.'