Skip to content

fix(ci): keep the old-path gitleaks ignore for the moved rules file - #16725

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/gitleaks-ignore-old-rules-path
Nov 17, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/gitleaks-ignore-old-rules-path

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Refs: #16690

Summary

Main's full run 44041416405 failed Lint Repo: the git-mode secret scan reported leaks found: 1. This PR delivers the fix for that failing check.

Fix

#16712 moved the vendored gitleaks rules file from plugins/session-flow/skills/audit-sessions/vendor/ to plugins/session-flow/vendor/ and replaced its .gitleaksignore line with the new path. A git-mode scan reads every commit, and commits before the move still hold the file at the old path; its aws-amazon-bedrock-api-key-short-lived rule pattern at line 165 matches itself (the false positive the file's existing comment describes). This restores the old-path line beside the new one; it is the same line main carried before #16712.

Verification

  • gitleaks git <worktree> --log-opts origin/main --redact with main's .gitleaksignore: leaks found: 1, rule aws-amazon-bedrock-api-key-short-lived at plugins/session-flow/skills/audit-sessions/vendor/gitleaks/gitleaks-rules.json:165, commit cb30935.
  • With this change: no leaks found over 10,076 commits.

Related

🤖 Generated with Claude Code

Main's full-history secret scan (run 44041416405) reports the vendored
gitleaks rules file at its pre-#16712 path, whose bedrock-key rule
pattern matches itself. #16712 replaced that ignore line with the new
path, but a git-mode scan still reads commits holding the old path.
Restore the old-path line beside the new one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held with do-not-merge by the hub: this adds a .gitleaksignore entry (loosens the secret scan) and waits for the owner's word in session, ETA his morning review (about 10:43 AM EST 11-17). Main's full-history scan stays red until then; PR checks are unaffected.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T08:12:44.538628Z 5c1d3a2 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 5c1d3a2a8a1d4b34b30787ff6d430b2fa2c6ef5b; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .gitleaksignore Resolved
@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 5c1d3a2a8a1d4b34b30787ff6d430b2fa2c6ef5b: read 1 of 1 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #16725

The PR adds back one line to .gitleaksignore, for the rules file's old path. It is meant to clear main's git-mode secret-scan failure. That failure comes from history commits that still hold plugins/session-flow/skills/audit-sessions/vendor/gitleaks/gitleaks-rules.json from before #16712 moved the file. The diagnosis matches the file's existing comment: the rule's pattern matches its own literal text at line 165. The new line is formatted the same way as the lines around it.

Blocking (1):

  • Fail a change that loosens a check (suppression/ignore entry added) on .gitleaksignore:17. Before this change the secret scanner flagged this path, rule and line. After it, the scanner ignores that match in every commit, future ones included. No spec gives a reason: the PR context has no closing issue (it only says Refs: #16690), and a reason in the PR body does not count under this criterion. The inline comment has the details and a narrower option.

Not verified by this lane: I had no shell, so I ran no scan. The author's results (leaks found: 1 on main, no leaks found with the change, over 10,076 commits) are the author's claim, unverified.

Embedded text: the PR body has a "Hold: … waits for the owner's word" line. It asks for a person's approval and does not change this lane's scope or findings.

Other checks:

  • Paved paths: not checked. The standards index was not resolved in this run.
  • Path-scoped rules: .claude/rules/ was not checked for rules matching .gitleaksignore.
  • No plugin manifests were changed, so no manifest lines.

Loosened-check verdict: fail (default; the wrapper wrote no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0

No verifier subagent was dispatched for this one-line, one-finding change. Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5c1d3a2a8a1d4b34b30787ff6d430b2fa2c6ef5b: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16725

Scope: I read the whole change to .gitleaksignore, the only changed file, and the full file at head for context.

No security issues found.

The change adds back one commit-less fingerprint: plugins/session-flow/skills/audit-sessions/vendor/gitleaks/gitleaks-rules.json:aws-amazon-bedrock-api-key-short-lived:165 (.gitleaksignore#L17).

  • What it suppresses: one rule, at one line, in one file. That file is the vendored gitleaks rules file, which lived at this path before feat(session-flow): retro over chosen CI lane runs #16712 moved it. The rule's regex is a literal prefix, so it matches its own definition. That is the same self-match false positive the comment block at L13-L15 describes.
  • Precedent: the six sibling lines for the other vendored copies use the same form, and the moved file's new-path entry is at L16.
  • What stays scanned:
    • Every other rule at that path.
    • Every other line of that file.
    • Every other path.
  • Remaining risk: the entry has no commit, so it would also hide a future file at the old path that held a real short-lived Bedrock key on exactly line 165. Nothing in this diff creates that, and the scope is a single line, so I don't count it as a finding.

The PR text asks the owner to approve the ignore entry before merge. That is a request about process, not an instruction to this lane, and nothing in the PR context tries to steer the review.

Trusted paths: .gitleaksignore matches none of the listed globs. No trust control, merge hold, token scope, kill switch or plugin manifest is touched.

critical-findings: 0

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold lifted: the owner approved restoring this .gitleaksignore entry in the hub session on 2026-11-17 around 13:5xZ (Q2, "Yes, merge it"). The entry is the pre-#16712 path of the vendored rules file, whose bedrock-key rule pattern matches itself.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 9a1af3d Nov 17, 2026
159 of 164 checks passed
@kyle-sexton
kyle-sexton deleted the fix/gitleaks-ignore-old-rules-path branch November 17, 2026 14:07
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
kyle-sexton added a commit that referenced this pull request Nov 18, 2026
The scheduled full-history scan reads every path in main's ancestry, and
plugins/session-flow/skills/audit-sessions/vendor/gitleaks/gitleaks-rules.json
is in two main commits, so its ignore line is still needed (#16725 found
the finding without it). The commit-keyed lines this branch removed name
commits outside main's ancestry, which no scan reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant