Skip to content

[codex] include recording security counts in truth query#67

Merged
saagpatel merged 1 commit into
mainfrom
codex/pr66-recording-query-fix-2026-06-14
Jun 14, 2026
Merged

[codex] include recording security counts in truth query#67
saagpatel merged 1 commit into
mainfrom
codex/pr66-recording-query-fix-2026-06-14

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Summary

Validation

  • ran the updated jq portfolio-truth query against live output/portfolio-truth-latest.json
  • ran latest weekly-command-center jq query
  • git diff --check

Fixes discussion: #66 (comment)

@saagpatel saagpatel marked this pull request as ready for review June 14, 2026 09:11
@saagpatel saagpatel merged commit 53e6f42 into main Jun 14, 2026
3 checks passed
@saagpatel saagpatel deleted the codex/pr66-recording-query-fix-2026-06-14 branch June 14, 2026 09:13

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fab78f8f92

ℹ️ 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".

attention_counts:.source_summary.attention_state_counts,
security:{
scanned:([.projects[] | select(.security.alerts_available == true)] | length),
with_open_high_critical:([.projects[] | select(((.security.dependabot_critical // 0) + (.security.dependabot_high // 0) + (.security.code_scanning_critical // 0) + (.security.code_scanning_high // 0) + (.security.secret_scanning_open // 0)) > 0)] | length),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Limit the live open-alert count to Dependabot

When a current snapshot contains a repo that has only code-scanning/secret-scanning counts, this jq reports it in with_open_high_critical, but the generated portfolio and weekly security summaries count only scanned repos whose Dependabot high+critical total is nonzero (src/portfolio_truth_types.py:181-183, src/weekly_command_center.py:421-430). That makes the checklist produce a different number than the Risk + Security/Weekly Digest surfaces it is meant to script, so live recordings can overstate the “repos with open high/critical Dependabot alerts” claim.

Useful? React with 👍 / 👎.

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