Skip to content

Commit c999dba

Browse files
authored
Add pylint and fix CI (#616)
1 parent f083a16 commit c999dba

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/workflows/security-scan.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,33 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install -U bandit pip-audit setuptools .
28-
- name: Install cid-cmd
29-
run: |
30-
pip install -U .
3128
- name: Bandit Scan
3229
run: |
3330
bandit -r .
31+
- name: Install cid-cmd
32+
run: |
33+
pip install -U .
3434
- name: Pip Audit
3535
run: |
36-
pip-audit
36+
# GHSA-wfm5-v35h-vwf4 gitpython is a dependency of pip-audit not cid-cmd
37+
# GHSA-cwvm-v4w8-q58c gitpython is a dependency of pip-audit not cid-cmd
38+
pip-audit --ignore-vuln GHSA-wfm5-v35h-vwf4 --ignore-vuln GHSA-cwvm-v4w8-q58c
39+
40+
python-pylint-cid:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Git clone the repository
44+
uses: actions/checkout@v3
45+
- name: Set up Python
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: '3.10'
49+
- name: Install cfn-lint
50+
run: |
51+
pip install pylint
52+
- name: PyLint
53+
run: |
54+
pylint ./cid/
3755
3856
cfn-scan-cid:
3957
runs-on: ubuntu-latest

.pylintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[MAIN]
2+
fail-under=7.50 # not the same in github actions and on your pc
3+
4+
[FORMAT]
5+
max-line-length=240
6+
7+
[MESSAGES CONTROL]
8+
# Disabling some:
9+
# W1203:logging-fstring-interpolation - No performance cosern
10+
# W0511:fixme - widely used
11+
disable=W1203,W0511

0 commit comments

Comments
 (0)