[AAASM-3433] 🔧 (ci): run CodeQL on push to master (default-branch coverage)#163
Conversation
node-sdk had no committed CodeQL workflow; the existing dynamic "Code Quality" runs upload only code-quality SARIF, leaving the security code-scanning feed empty (0 analyses on master). Add a codeql.yml mirroring go-sdk: pull_request + push:[master] + weekly schedule, with security-events: write for SARIF upload. Refs AAASM-3433 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
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. |
|
🟢 Review result — Claude Code (AAASM-3433)Verdict: APPROVED — ready for approval & merge. 1. CI status — all green
2. Scope vs ticket (AAASM-3433)
Post-merge: I'll confirm the security analysis records on master. Ready to merge. |



Target
CodeQL security analysis was never recorded on
node-sdk's default branch.gh api repos/ai-agent-assembly/node-sdk/code-scanning/analysesreturns404 "no analysis found"— the code-scanning (security) dashboard is empty and there is no scheduled scan.Investigation showed the repo's only CodeQL runs come from GitHub's dynamic default setup in code-quality mode — they upload
javascript.quality.sarif("Uploading code quality results"), which lands in the code-quality feed, not the securitycode-scanning/analysesfeed. Hence 0 security analyses despite green CodeQL runs.Task summary:
Add a committed
.github/workflows/codeql.yml(mirroring go-sdk's) that runs the security CodeQL analysis forjavascript-typescriptand uploads SARIF to the code-scanning feed on push tomasterand on a weekly schedule, while keeping PR runs.Task tickets:
Key point change (optional):
Triggers
pull_request+push: branches:[master]+schedule: cron "0 3 * * 1";permissions.security-events: writefor SARIF upload. Languagejavascript-typescript,build-mode: none(no autobuild needed for JS/TS),submodules: recursivefor parity with go-sdk.Effecting Scope
CI-config only. No source, dependency, or runtime change. Adds one new workflow file; touches no existing job.
Description
.github/workflows/codeql.yml: security CodeQLAnalyze (javascript-typescript)on PR, push tomaster, and weeklyschedule, validated withactionlint(clean).How to verify: After merge, push to
mastertriggers theCodeQLworkflow;gh api repos/ai-agent-assembly/node-sdk/code-scanning/analysesshould then return a recorded analysis onrefs/heads/master.Closes AAASM-3433
🤖 Generated with Claude Code