Update bandit.yml

This commit is contained in:
SudoLite 2022-03-25 02:58:46 +04:30 committed by GitHub
parent 608f5ba60c
commit 4118e883aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 20 deletions

View File

@ -1,24 +1,29 @@
name: Bandit
on:
pull_request:
push:
branches:
- master #dev, release, etc.
release:
types:
- created
name: Security check - Bandit
on: [ pull_request , push ]
jobs:
bandit:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ '3.8.12', '3.10' ]
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 #get fuller history
- name: Run Bandit Report
uses: libertyy/py3-bandit-check@v2
- name: Save Bandit txt Report
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: ${{ RUNNER.temp }}/_github_home/bandit_report.out
- uses: actions/checkout@v2
- name: Security check - Bandit
uses: ././
with:
python_version: ${{ matrix.python-version }}
project_path: .
ignore_failure: true
- name: Security check report artifacts
uses: actions/upload-artifact@v1
# if: failure()
with:
name: Security report
path: output/security_report.txt