Skip to content

Commit 30f4e69

Browse files
gruebelbeeme1mr
andauthored
ci: split lint job into lint and sast (#256)
split lint job into lint and sast Signed-off-by: gruebel <[email protected]> Co-authored-by: Michael Beemer <[email protected]>
1 parent b3c67b6 commit 30f4e69

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,23 @@ jobs:
6363
python-version: "3.11"
6464
cache: "pip"
6565

66+
- name: Run pre-commit
67+
uses: pre-commit/[email protected]
68+
69+
sast:
70+
runs-on: ubuntu-latest
71+
72+
steps:
73+
- uses: actions/checkout@v4
74+
- uses: actions/setup-python@v5
75+
with:
76+
python-version: "3.11"
77+
6678
- name: Initialize CodeQL
6779
uses: github/codeql-action/init@v3
6880
with:
6981
languages: python
7082
config-file: ./.github/codeql-config.yml
7183

72-
- name: Install dependencies
73-
run: pip install -r requirements.txt
74-
75-
- name: Run pre-commit
76-
uses: pre-commit/[email protected]
77-
7884
- name: Perform CodeQL Analysis
7985
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)