Skip to content

fix(ci): narrow static SQL scanner suppression - #648

Closed
seonghobae wants to merge 7 commits into
fix/global-ask-graph-fact-provenancefrom
feat/global-ask-knowledge-cutoff-current
Closed

fix(ci): narrow static SQL scanner suppression#648
seonghobae wants to merge 7 commits into
fix/global-ask-graph-fact-provenancefrom
feat/global-ask-knowledge-cutoff-current

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Narrows the #632 Semgrep repair to the exact false positive:

  • _LINEAGE_LANDING_SQL is a module constant assembled only from code-owned eligibility SQL
  • all runtime values remain asyncpg bind parameters
  • adds a rule-specific documented nosemgrep at that call site
  • removes the unnecessary sibling-query constants introduced by the broader first repair

Verification: 58 focused tests passed; semgrep --config p/python backend/app/lineage_ingestion.py --error reports 0 findings.


Open in Devin Review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fb20efee-b137-4be3-90c2-c511fe6c4e33

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

rows = await conn.fetch(
"select post_id, post_title, voc_type_code, created_at, corporate_entity_id, "
"process_unit_id, thread_group_key, secondary_grouping_key "
f"from source_post where {SOURCE_POST_ELIGIBILITY_SQL.format(alias='source_post')}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Inlined eligibility stays static

SOURCE_POST_ELIGIBILITY_SQL receives only the fixed alias before _load_lineage_records builds the query. No caller data enters the SQL string.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@seonghobae

Copy link
Copy Markdown
Contributor Author

Superseded: the current #632 head already contains the reviewed static SQL constants and rule-specific documented suppressions at all affected asyncpg call sites. Closing this now-conflicting duplicate instead of restacking redundant code.

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