File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,30 @@ jobs:
5151 with :
5252 tfsec_actions_comment : false
5353
54- python-test :
55- name : PythonTest
54+ python-check :
55+ name : Python Check
5656 runs-on : ubuntu-20.04
5757 container :
5858 image : python:3.8-slim-buster
5959 steps :
6060 - uses : actions/checkout@master
61- - name : Test
61+ - name : Install dependencies
6262 run : |
6363 pip install -r requirements.txt
64+ pip install flake8 pytest bandit
65+ - name : Lint with flake8
66+ run : |
67+ # stop the build if there are Python syntax errors or undefined names
68+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
69+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
70+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
71+ continue-on-error : true
72+ - name : Security check with Bandit
73+ run : |
74+ bandit -r .
75+ continue-on-error : true
76+ - name : Run Code
77+ run : |
6478 python3 ssl-check-to-slack.py
6579 env :
6680 HOOK_URL : " https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXXXX"
You can’t perform that action at this time.
0 commit comments