Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github workflow: Add 'black' and 'bandit' linters #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Security check - Bandit

on: push

jobs:
build:
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Security check - Bandit
uses: ./
with:
ignore_failure: true
project_path: .
python_version: ${{ matrix.python-version }}

- name: Security check report artifacts
uses: actions/upload-artifact@v3
with:
name: Security report
path: output/security_report.txt

strategy:
matrix:
os:
- ubuntu-latest
python-version:
- 3.6.10

15 changes: 15 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: --check --verbose --diff --skip-string-normalization --line-length 400

Loading