Skip to content

Fix 10 open CodeQL findings (workflow perms, logging, sanitization)#170

Merged
federiconeri merged 1 commit intomainfrom
fix/codeql-alerts
Apr 7, 2026
Merged

Fix 10 open CodeQL findings (workflow perms, logging, sanitization)#170
federiconeri merged 1 commit intomainfrom
fix/codeql-alerts

Conversation

@federiconeri
Copy link
Copy Markdown
Owner

Summary:\n- Fixes open CodeQL findings in workflows and runtime code.\n- Adds explicit minimal workflow token permissions in CI and publish workflows.\n- Replaces regex-based trailing punctuation stripping in polishGoal with a linear scanner.\n- Hardens URL HTML text extraction by replacing fragile tag regexes with deterministic block stripping and conservative entity decoding.\n- Reduces clear-text logging exposure by moving sensitive command error paths through logger and removing provider env-var names from API-key-related runtime errors.\n\nValidation:\n- npm run typecheck\n- npm test -- src/commands/sync.test.ts\n- npm test -- src/commands/agent.test.ts\n- npm test -- src/commands/agent.integration.test.ts\n- npm test -- src/commands/config.test.ts\n- npm test -- src/ai/conversation/url-fetcher.test.ts\n- npm test -- src/tui/utils/polishGoal.test.ts\n\nNote: one unrelated pre-existing untracked local file was left untouched: src/agent/tools/max-length-tool-inputs.integration.test.ts

@federiconeri federiconeri merged commit 39120b4 into main Apr 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant