Merge pull request #355 from SevanSSP/dependabot/pip/pydantic-2.8.2 #220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |