Skip to content

Commit

Permalink
Added pylint (#1302)
Browse files Browse the repository at this point in the history
* Create bandit_security_test.yml

Added Bandit security test for python

* Update bandit_security_test.yml

* Update bandit_security_test.yml

* Create pylint.yml

* Update pylint.yml

* Update pylint.yml
  • Loading branch information
hardiksharma11 authored and prajjwalkapoor committed Mar 20, 2024
1 parent d6caf93 commit 8b0b349
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/bandit_security_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Security check - Bandit

on: push

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: Python ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Security check - Bandit
uses: ioggstream/bandit-report-artifacts@v0.0.2
with:
project_path: .
ignore_failure: true

# This is optional
- name: Security check report artifacts
uses: actions/upload-artifact@v1
with:
name: Security report
path: output/security_report.txt
24 changes: 24 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')

0 comments on commit 8b0b349

Please sign in to comment.