Skip to content

feat: implement issue #376 — Compliance: gitignore_baseline - #377

Merged
don-petry merged 21 commits into
mainfrom
dev-lead/issue-376-20260724-1400
Aug 18, 2026
Merged

don-petry merged 21 commits into
mainfrom
dev-lead/issue-376-20260724-1400

Conversation

@don-petry

@don-petry don-petry commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #376

Implemented by dev-lead agent. Please review.

Summary by CodeRabbit

  • Chores
    • Updated project file exclusions to prevent backup files from being included in version control.

@don-petry
don-petry requested a review from a team as a code owner July 24, 2026 14:03
@codeant-ai

codeant-ai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Incremental review completed f3cc2a2 Aug 18, 2026 · 15:14 15:14
✅ Incremental review completed 5aa09ec Aug 14, 2026 · 14:46 14:46
✅ Incremental review completed ceb868c Aug 10, 2026 · 13:46 13:46
✅ Incremental review completed a9a19a7 Aug 07, 2026 · 16:41 16:41
✅ Incremental review completed 72ad9bf Aug 06, 2026 · 23:56 23:56

@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.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The .gitignore file now ignores all files that use the .bak extension.

Changes

Gitignore Baseline

Layer / File(s) Summary
Backup file ignore rule
.gitignore
Adds a backup-file section that ignores files matching *.bak.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: gitignore-baseline

Suggested reviewers: donpetry-bot

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The change adds *.bak outside the managed block and does not restore the canonical baseline, so issue #376 remains unresolved. Copy the canonical secrets-baseline block verbatim, add *.bak inside the managed markers, remove the redundant per-repository entry, and rerun checks.
Out of Scope Changes check ⚠️ Warning The per-repository *.bak entry is outside the linked issue objective and duplicates the required managed-block change. Remove the per-repository *.bak entry and limit the change to restoring the organization-managed baseline block.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the compliance change for issue #376 and the .gitignore baseline.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-376-20260724-1400

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Ignore *.bak backup files for compliance baseline

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Add a generic *.bak ignore rule to prevent committing backup artifacts.
High-Level Assessment

The approach is appropriate for a compliance-oriented baseline: ignoring generic backup extensions reduces accidental secret/data commits with minimal risk. Considered adding narrower patterns (e.g., *.sql.bak only), but a broad *.bak rule better matches the stated compliance intent.

Files changed (1) +1 / -1

Other (1) +1 / -1
.gitignoreIgnore .bak backup files +1/-1

Ignore .bak backup files

• Replaces the narrowly-scoped *.sql.bak ignore with a generic *.bak rule to exclude common backup files from version control.

.gitignore

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request modifies the .gitignore file to ignore all *.bak files instead of only *.sql.bak. The reviewer correctly points out that this change was made in an automated, managed section of the file and will be overwritten. It is recommended to revert this change and place the ignore pattern in the custom section at the end of the file.

Comment thread .gitignore Outdated
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (applied)

Changes committed and pushed.

@don-petry
don-petry enabled auto-merge (squash) July 24, 2026 14:05
@don-petry
don-petry disabled auto-merge July 24, 2026 14:06
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry
don-petry enabled auto-merge (squash) July 24, 2026 14:07
@donpetry-bot

donpetry-bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor
Superseded by automated re-review at f3cc2a24490afec3b0f01cd058d65f598e4dbea5 — click to expand prior review.

Review — fix requested (cycle 1/3)

The automated review identified the following issues. Please address each one:

Findings to fix

Automated review — NEEDS HUMAN REVIEW

Risk: LOW
Reviewed commit: e4f6a077b7a3d837f3155432f634170fec1a8727
Review mode: triage-approved (single reviewer)

Summary

The PR adds '.bak' to the L2 (per-repo) section of .gitignore, but issue #376 is an L1 managed-block drift finding: the org-managed secrets baseline span still contains '.sql.bak' where the canonical block has '.bak' (line 215). The compliance check hashes only the L1 span between the BEGIN/END markers, so this PR as-is will NOT resolve the finding. The correct fix is to re-copy the canonical block verbatim (change line 215 inside the markers from '.sql.bak' to '*.bak'); the L2 addition then becomes redundant and can be dropped.

Linked issue analysis

Issue #376 (Compliance: gitignore_baseline, severity error) reports that the .gitignore secrets-baseline block drifted from the org canonical block (SHA-256 hash mismatch) and must be re-copied verbatim. Verified by diffing the L1 span at PR head (e4f6a07) against petry-projects/.github/.gitignore: spans still differ at line 215 ('.sql.bak' vs canonical '.bak'). The first commit (df8a658) fixed this correctly inside the managed block, but it was reverted after a gemini-code-assist review incorrectly advised moving the change outside the managed section. Net result: the linked issue is NOT substantively addressed — the weekly audit will re-flag this repo.

Findings

  1. [BLOCKING — issue not resolved] The L1 managed block at PR head still drifts from canonical: line 215 is '.sql.bak' but the canonical block has '.bak'. Fix: restore the first commit's change — edit line 215 inside the markers to '*.bak' (i.e., re-copy the canonical block verbatim), per standards/gitignore-standard.md. The gemini review advice to keep edits out of the managed section does not apply here; re-syncing the block IS the remediation.
  2. [MINOR] Once L1 is re-synced, the new L2 '# Backup files' block ('*.bak') duplicates the canonical L1 entry and should be removed.
  3. Secret scan: run_secret_scanning MCP tool not available in this session; gitleaks CI check passed. No secrets in the diff (gitignore-only change).

CI status

All checks green: CodeQL, SonarCloud (quality gate passed, 0 issues), gitleaks secret scan, AgentShield, CodeRabbit — SUCCESS. Backend/Frontend CI and dependency audits skipped (no matching paths). Merge state: BEHIND main but MERGEABLE.


Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.

Additional tasks

  1. Resolve all unresolved review thread comments from other reviewers
  2. Ensure all CI checks pass after your changes
  3. Rebase on the target branch if behind
  4. Do NOT modify files unrelated to the findings above

The review cascade will automatically re-review after new commits are pushed.

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-reviews (no-changes)

Agent reasoning
Addressed 0 threads:
(no open threads)
Test verification: skipped — no code changes made
Files changed: none
```

@don-petry
don-petry enabled auto-merge (squash) August 2, 2026 16:43
@don-petry
don-petry disabled auto-merge August 3, 2026 01:21

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitignore:
- Around line 415-417: Restore the canonical managed .gitignore block verbatim,
including its *.bak rule, and remove the redundant per-repository backup-files
section. Then rerun the compliance checks to confirm the managed-block hash
matches.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7e595b57-1241-4db2-b7ed-290595d1d526

📥 Commits

Reviewing files that changed from the base of the PR and between 9c3a877 and 5d6028e.

📒 Files selected for processing (1)
  • .gitignore

Comment thread .gitignore Outdated
@donpetry-bot

Copy link
Copy Markdown
Contributor

Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-08-14T15:53:46Z.

@don-petry
don-petry disabled auto-merge August 14, 2026 15:02
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry
don-petry enabled auto-merge (squash) August 14, 2026 15:03
@don-petry
don-petry disabled auto-merge August 14, 2026 15:40
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry
don-petry enabled auto-merge (squash) August 14, 2026 15:41
@donpetry-bot

Copy link
Copy Markdown
Contributor

Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-08-14T16:41:13Z.

@don-petry
don-petry disabled auto-merge August 14, 2026 16:40
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry
don-petry enabled auto-merge (squash) August 14, 2026 16:40
@donpetry-bot

Copy link
Copy Markdown
Contributor

Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-08-14T17:41:19Z.

@codeant-ai

codeant-ai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@don-petry
don-petry disabled auto-merge August 18, 2026 15:15
@sonarqubecloud

Copy link
Copy Markdown

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry
don-petry enabled auto-merge (squash) August 18, 2026 15:16
@donpetry-bot

Copy link
Copy Markdown
Contributor

Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-08-18T16:17:20Z.

@donpetry-bot donpetry-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.

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: f3cc2a24490afec3b0f01cd058d65f598e4dbea5
Cascade: triage → deep (triage: haiku 4.5 → deep: opus 4.8 + duck: o4-mini → audit: fable 5)

Summary

PR #377 has an empty net diff (0 additions / 0 deletions / 0 changed files; gh pr diff returns nothing; files:[]), confirmed by both PR metadata and the raw diff, with mergeable:MERGEABLE ruling out a fetch/conflict artifact. The branch's 21 commits are 1 original feat implementing the .gitignore secrets-baseline fix for issue #376 plus review fixes, followed by 18 merge-from-main commits; the branch tree now equals main, so the compliance fix already landed in main and this PR is a redundant no-op. Triage escalated HIGH on the empty diff, but the correct read is zero code change and therefore zero security surface — nothing for a security auditor to examine. All CI is green (AgentShield, CodeQL, gitleaks, SonarCloud SUCCESS; language CIs SKIPPED as expected), no CHANGES_REQUESTED reviews, downstream impact (none). MCP secret scanning is unavailable and moot with no added content. Reviewers may prefer to close this as redundant rather than merge, but merging is harmless.

Findings

  • INFO: Net diff against base main is empty (0/0/0, files:[]). The issue #376 .gitignore secrets-baseline fix already exists in main; this PR contributes no changes and is redundant. Consider closing rather than merging.
  • INFO: Triage flagged HIGH because the diff appeared 'empty or missing' and it could not verify scope. Deep review confirms the emptiness is genuine and benign: the compliance change already merged to main via the branch's repeated merge-from-main commits.
  • INFO: run_secret_scanning MCP tool not available in this environment; with an empty diff there is no added/modified content to scan, so the scan is moot. gitleaks CI check passed.

Reviewed by the PR-review cascade (triage: haiku 4.5 → deep: opus 4.8 + duck: o4-mini → audit: fable 5). Reply if you need a human review.

@don-petry
don-petry merged commit 123032d into main Aug 18, 2026
22 checks passed
@don-petry
don-petry deleted the dev-lead/issue-376-20260724-1400 branch August 18, 2026 15:29
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.

Compliance: gitignore_baseline

2 participants