Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Dec 22, 2025

Summary by cubic

Updated gitleaks allowlist to ignore venv folders (venv/, .venv/) and the ruff cache, and only allow uv.lock. Cleaned up .gitignore by removing old docs build paths (.docs/ and site/).

Written for commit c5acf4c. Summary will update automatically on new commits.

Copilot AI review requested due to automatic review settings December 22, 2025 12:14
@ryoppippi ryoppippi enabled auto-merge (squash) December 22, 2025 12:14
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the gitleaks configuration to exclude virtual environment and cache directories from secret scanning. The changes expand the allowlist beyond just the PR title's mention of venv to also include Ruff cache directories, and makes an unrelated cleanup to .gitignore.

Key Changes:

  • Expanded gitleaks allowlist to include venv/, .venv/, and .ruff_cache/ directories alongside the existing uv.lock pattern
  • Removed documentation build directory patterns (.docs/ and site/) from .gitignore

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
.gitleaks.toml Added allowlist patterns for virtual environment directories (venv/, .venv/) and Ruff cache directory (.ruff_cache/) to prevent false positive secret detections
.gitignore Removed documentation build directory patterns that are no longer needed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

'''\.lock$''',
'''\.snap$''',
'''uv\.lock$''',
'''venv/''',
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The .gitignore file already contains .venv (line 3), which will only ignore that specific directory name at the repository root. However, the gitleaks allowlist pattern \.venv/ uses a regex that will match .venv/ anywhere in the path. Additionally, venv/ in the gitleaks allowlist will match venv/ directories but there's no corresponding entry in .gitignore to prevent these directories from being committed. Consider adding venv/ to .gitignore to maintain consistency between what gitleaks ignores and what git ignores.

Suggested change
'''venv/''',

Copilot uses AI. Check for mistakes.
Comment on lines +13 to 14
'''\.ruff_cache/''',
]
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The .ruff_cache/ directory added to the gitleaks allowlist should also be present in .gitignore to prevent it from being committed to the repository. This cache directory is generated by the Ruff linter and typically should not be tracked by git. Consider adding .ruff_cache/ to .gitignore for consistency.

Suggested change
'''\.ruff_cache/''',
]
]

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@glebedel glebedel left a comment

Choose a reason for hiding this comment

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

LGTM

@ryoppippi ryoppippi merged commit f2f0d44 into main Dec 23, 2025
21 checks passed
@ryoppippi ryoppippi deleted the fix-gitleaks-config branch December 23, 2025 09:24
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.

3 participants