ci: add CodeQL code scanning#70
Conversation
Add CodeQL security analysis with the security-extended query suite. Runs on PRs, pushes to main, and weekly schedule (catches new vulnerability patterns in existing code). Uses none build mode (TypeScript is interpreted, no build required). Results appear in the repository's Security tab under Code scanning.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughA new GitHub Actions workflow is added to enable CodeQL security analysis for JavaScript and TypeScript code. The workflow triggers on pushes to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/codeql.yml:
- Around line 11-13: The CodeQL workflow's permissions block is missing the
actions permission which is required for private repos; update the permissions
mapping in the CodeQL workflow (the permissions: block in the codeql.yml) to
include actions: read alongside contents: read and security-events: write so
workflow metadata can be accessed; ensure the new entry follows YAML indentation
and ordering consistent with the existing permissions keys.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: bf8ac5c7-e6ac-4bbf-bf5a-820d06baedae
📒 Files selected for processing (1)
.github/workflows/codeql.yml
Summary
security-extendedquery suitenonebuild mode (TypeScript)Summary by CodeRabbit