Skip to content

fix(security): address first-pass CodeQL alerts#1114

Merged
kunickiaj merged 1 commit into
mainfrom
05-21-fix_codeql_security_alerts_first_pass
May 21, 2026
Merged

fix(security): address first-pass CodeQL alerts#1114
kunickiaj merged 1 commit into
mainfrom
05-21-fix_codeql_security_alerts_first_pass

Conversation

@kunickiaj
Copy link
Copy Markdown
Owner

@kunickiaj kunickiaj commented May 21, 2026

Description

Addresses the first pass of GitHub CodeQL/code scanning alerts on top of the dependency remediation PR. Changes include:

  • Add least-privilege contents: read workflow permissions for CI.
  • Escape SQL LIKE wildcards/backslashes in project and file matching helpers.
  • Replace CodeQL-flagged regex patterns in high-risk ingest, query, observer, sync, and coordinator paths with bounded string scanning helpers.
  • Constrain the Claude sidecar executable before execFile and document the remaining no-shell safety boundary.
  • Suppress the stats --json clear-text logging alert as intentional CLI stdout, not application logging.

Type of Change

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint, pnpm run test)
  • Added/updated tests for changes
  • Manually verified changes work as expected

Validation run:

  • Targeted Vitest files for touched core/CLI helpers
  • pnpm run lint
  • pnpm run check
  • CodeReviewer review + follow-up re-review: no blockers

Checklist

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

Compatibility note: claude_command executable validation now allows safe PATH command names and absolute paths, but rejects relative executable paths containing / such as ./wrapper.

Copy link
Copy Markdown
Owner Author

kunickiaj commented May 21, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da8ef76ba8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/core/src/ingest-sanitize.ts
Comment thread packages/core/src/ingest-sanitize.ts
@kunickiaj kunickiaj changed the base branch from 05-21-chore_deps_patch_protobufjs_runtime_advisories to graphite-base/1114 May 21, 2026 15:50
@kunickiaj kunickiaj force-pushed the graphite-base/1114 branch from f524662 to b9ee7b0 Compare May 21, 2026 15:52
@kunickiaj kunickiaj force-pushed the 05-21-fix_codeql_security_alerts_first_pass branch from da8ef76 to 7ebb359 Compare May 21, 2026 15:52
@graphite-app graphite-app Bot changed the base branch from graphite-base/1114 to main May 21, 2026 15:53
@kunickiaj kunickiaj force-pushed the 05-21-fix_codeql_security_alerts_first_pass branch from 7ebb359 to 2cf6c19 Compare May 21, 2026 15:53
@kunickiaj kunickiaj force-pushed the 05-21-fix_codeql_security_alerts_first_pass branch from 2cf6c19 to a9beb68 Compare May 21, 2026 15:58
Copy link
Copy Markdown
Owner Author

kunickiaj commented May 21, 2026

Merge activity

  • May 21, 4:00 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 21, 4:01 PM UTC: @kunickiaj merged this pull request with Graphite.

@kunickiaj kunickiaj merged commit f2a2386 into main May 21, 2026
11 checks passed
@kunickiaj kunickiaj deleted the 05-21-fix_codeql_security_alerts_first_pass branch May 21, 2026 16:01
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