Skip to content

Commit 2889a72

Browse files
authored
Merge pull request #3 from AmberJBlue/update-security-scans
Guarantee serif format
2 parents 1807b85 + 6eda1b4 commit 2889a72

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/security.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ jobs:
8787
pip install -e ".[dev]"
8888
8989
- name: Run Bandit Security Scan
90-
uses: PyCQA/bandit-action@v1
91-
with:
92-
targets: "."
93-
configFile: "pyproject.toml"
90+
run: |
91+
source .venv/bin/activate
92+
bandit -r . --configfile pyproject.toml --format sarif -o results.sarif
9493
9594
- name: Upload SARIF results to Security tab
9695
if: github.ref == 'refs/heads/main'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dev = [
4848
"twine==3.4.2",
4949
"wheel~=0.38.4",
5050
"xgboost~=3.0.2",
51-
"bandit[toml]~=1.7.7"
51+
"bandit[toml,sarif]~=1.7.7"
5252
]
5353
extras = ["aix360[default,tsice,tslime,tssaliency]==0.3.0"]
5454

0 commit comments

Comments
 (0)