File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Python Security Check (Bandit)
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ bandit :
9+ name : Run Bandit Security Analysis
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Check out code
14+ uses : actions/checkout@v3
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.12'
20+
21+ - name : Install Bandit
22+ run : pip install bandit
23+
24+ - name : Run Bandit
25+ run : |
26+ bandit -r custom_components/enpal_webparser -ll
Original file line number Diff line number Diff line change 1+ name : " CodeQL Analysis"
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : ' 0 3 * * 0' # optional: wöchentlicher Scan (Sonntag 03:00)
8+
9+ jobs :
10+ analyze :
11+ name : Analyze
12+ runs-on : ubuntu-latest
13+ permissions :
14+ actions : read
15+ contents : read
16+ security-events : write
17+
18+ strategy :
19+ matrix :
20+ language : [python]
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v3
25+
26+ - name : Initialize CodeQL
27+ uses : github/codeql-action/init@v3
28+ with :
29+ languages : ${{ matrix.language }}
30+
31+ - name : Autobuild
32+ uses : github/codeql-action/autobuild@v3
33+
34+ - name : Perform CodeQL Analysis
35+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments