Skip to content

Commit 1807b85

Browse files
authored
Merge pull request #2 from AmberJBlue/update-security-scans
Update security scans
2 parents fa2459d + 7e86cf2 commit 1807b85

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/security.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,11 @@ jobs:
8686
source .venv/bin/activate
8787
pip install -e ".[dev]"
8888
89-
- name: Install Bandit
90-
run: |
91-
source .venv/bin/activate
92-
pip install bandit[toml]
93-
9489
- name: Run Bandit Security Scan
9590
uses: PyCQA/bandit-action@v1
9691
with:
9792
targets: "."
93+
configFile: "pyproject.toml"
9894

9995
- name: Upload SARIF results to Security tab
10096
if: github.ref == 'refs/heads/main'

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dev = [
4848
"twine==3.4.2",
4949
"wheel~=0.38.4",
5050
"xgboost~=3.0.2",
51+
"bandit[toml]~=1.7.7"
5152
]
5253
extras = ["aix360[default,tsice,tslime,tssaliency]==0.3.0"]
5354

@@ -86,3 +87,6 @@ markers = [
8687
where = ["src"]
8788

8889
[tool.setuptools_scm]
90+
91+
[tool.bandit]
92+
exclude = ["tests"]

0 commit comments

Comments
 (0)