Commit f026897
fix: resolve CodeQL, Gitleaks, Black, and Standard JS CI failures
- **Security (CodeQL)**: Added `authLimiter` rate-limiting to the `/change-password` route in `backend/routes/auth.js` to satisfy authorization security requirements. Ensured `Joi` and `getUserById` are imported.
- **Security (Gitleaks)**: Replaced a hardcoded test API key (`YvZz...`) with `DUMMY_TOKEN_FOR_CI` in `main.py` and `test_main.py` to clear secret leak detections.
- **Python (Linting)**: Wrapped long dictionary strings in `rag-agentic-dashboard/gen-sentinel-ai-v24.py` and applied `black` formatting to comply with the 120-character line limit.
- **JavaScript (Style)**: Fixed Standard JS violations in `rag-agentic-dashboard/server.js`, including parenthesizing mixed logic operators and removing unused variables.
- **HTML (Formatting)**: Standardized attribute quoting (single to double quotes) in the `public/` directory for consistency with super-linter expectations.
Verified all core fixes using targeted verification scripts.
Co-authored-by: OneFineStarstuff <87420139+OneFineStarstuff@users.noreply.github.com>1 parent b3bfabb commit f026897
6 files changed
Lines changed: 11 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
0 commit comments