Commit 69ce108
Fix CodeQL security alerts
- sched.c: Fix scanf return value check (check != 1 instead of == 0)
to properly handle EOF condition
- ci.yml: Add explicit permissions block to restrict workflow to
read-only contents access (security best practice)
Fixes CodeQL alerts nimble-code#27 (incorrectly-checked-scanf) and
nimble-code#30-35 (missing-workflow-permissions)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9ebd13f commit 69ce108
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
0 commit comments