Skip to content

Commit

Permalink
Added SAST in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Chelsea486MHz committed May 12, 2024
1 parent 8a85a13 commit 1bab77b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
python-version: 3.12
architecture: x64

- name: Static security analysis
run: bandit -c pyproject.toml -r src

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
pip install setuptools wheel build bandit flake8
- name: Build package
run: python -m build
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"

[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B110", "B404", "B602"]

0 comments on commit 1bab77b

Please sign in to comment.