Github Actions : Added Mypy and Python Bandit Security automation #1
Workflow file for this run
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 # Name of the GitHub Actions workflow | |
on: [push, pull_request] # Trigger the workflow | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Executes the job on the latest version of Ubuntu | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] # Running matrix jobs on both Ubuntu and macOS | |
name: Python ${{ matrix.os }} # Name the job based on the OS being used | |
steps: | |
- uses: actions/checkout@v2 # Checks out your repository's code | |
- name: Security check - Bandit # Run Bandit security check | |
uses: ioggstream/[email protected] # Using Bandit for security checks | |
with: | |
project_path: . # Path to the project to scan | |
ignore_failure: true # Continue the workflow even if Bandit reports issues | |
# This step is optional, it uploads the Bandit report as an artifact | |
- name: Security check report artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: Security report # Name of the artifact | |
path: output/security_report.txt # Path to the Bandit security report |