Skip to content

Merge pull request #368 from SevanSSP/dependabot/pip/qats-5.1.2 #267

Merge pull request #368 from SevanSSP/dependabot/pip/qats-5.1.2

Merge pull request #368 from SevanSSP/dependabot/pip/qats-5.1.2 #267

name: Security check - Bandit
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Code analysis with Bandit with ${{matrix.python}} on Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Generate report folder and Install Bandit
run: mkdir -p path/to/file | pip install poetry bandit
- name: Bandit check
if: always()
run: bandit -r app -o path/to/file/bandit_report.txt
- uses: actions/upload-artifact@v4
if: always()
with:
name: Safety Reports py${{ matrix.python }}
path: path/to/file