Skip to content

Commit

Permalink
split lint job into lint and sast
Browse files Browse the repository at this point in the history
Signed-off-by: gruebel <anton.gruebel@gmail.com>
  • Loading branch information
gruebel committed Jan 6, 2024
1 parent a853b85 commit dd72e9f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,23 @@ jobs:
python-version: "3.11"
cache: "pip"

- name: Run pre-commit
uses: pre-commit/action@v3.0.0

sast:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
config-file: ./.github/codeql-config.yml

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run pre-commit
uses: pre-commit/action@v3.0.0

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit dd72e9f

Please sign in to comment.