Skip to content

Commit 7c39948

Browse files
committed
fix: changed confidence level to high for bandit logging and rolled back initial password values.
Signed-off-by: RafaelJohn9 <rafaeljohb@gmail.com>
1 parent 664853b commit 7c39948

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ jobs:
8282
run: uv pip install -e '.[dev]'
8383

8484
- name: Run Bandit
85-
run: uv run bandit -r mpesakit
85+
run: uv run bandit -r mpesakit -iii

mpesakit/mpesa_express/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class StkPushSimulateRequest(BaseModel):
8989
json_schema_extra={
9090
"example": {
9191
"BusinessShortCode": 654321,
92-
"Password": "B64_ENCODED_PASSWORD",
92+
"Password": "bXlwYXNzd29yZA==",
9393
"Timestamp": "20240607123045",
9494
"TransactionType": "CustomerPayBillOnline",
9595
"Amount": 10,
@@ -499,7 +499,7 @@ class StkPushQueryRequest(BaseModel):
499499
json_schema_extra={
500500
"example": {
501501
"BusinessShortCode": 654321,
502-
"Password": "B64_ENCODED_PASSWORD",
502+
"Password": "bXlwYXNzd29yZA==",
503503
"Timestamp": "20240607123045",
504504
"CheckoutRequestID": "ws_CO_DMZ_123212312_2342347678234",
505505
}

0 commit comments

Comments
 (0)