name: Bandit
on:
  pull_request:
  push:
    branches:
      - main
      - master
  release:
    types:
      - created

jobs:
  bandit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Run Bandit Report
        uses: libertyy/py3-bandit-check@fix/update_python_version_for_bandit
      - name: Save Bandit txt Report
        if: ${{ always() }}
        uses: actions/upload-artifact@v2
        with:
          path: ${{ RUNNER.temp }}/_github_home/bandit_report.out
