Skip to content

Conversation

@SecHoussam
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @SecHoussam, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the tool's capability to identify sensitive data by integrating new regular expression patterns. These additions will improve the detection of various API keys and access tokens, thereby strengthening the overall security scanning and helping to prevent the accidental exposure of credentials from a wider range of platforms.

Highlights

  • New Secret Detection Patterns: This PR introduces several new regular expression patterns to enhance the detection of sensitive information, such as API keys and access tokens, across various services.
  • Expanded Service Coverage: The added patterns specifically target GitLab, Shopify, Linear, DigitalOcean, Asana, Dropbox, SendGrid, and Firebase, broadening the scope of secrets that can be identified.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist[bot]

This comment was marked as outdated.

@hahwul hahwul added this to the v2.13.0 milestone Jan 25, 2026
@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

"dalfox-esii": `<esii-dalfox>`,
"dalfox-rsa-key": `-----BEGIN RSA PRIVATE KEY-----|-----END RSA PRIVATE KEY-----`,
"dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`,
"dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped dot before 'com', so it might match more hosts than expected when
the regular expression is used
.
"dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`,
"dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`,
"dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`,
"dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped dot before 'slack.com', so it might match more hosts than expected when
the regular expression is used
.
"dalfox-priv-key": `-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----`,
"dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`,
"dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`,
"dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`,

Check failure

Code scanning / CodeQL

Missing regular expression anchor High

When this is used as a regular expression on a URL, it may match anywhere, and arbitrary hosts may come before or after it.
"dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`,
"dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`,
"dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`,
"dalfox-slack-webhook2": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8,10}/B[a-zA-Z0-9_]{8,10}/[a-zA-Z0-9_]{24}`,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped dot before 'slack.com', so it might match more hosts than expected when
the regular expression is used
.
"dalfox-aws-s3": `s3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com`,
"dalfox-aws-appsync-graphql": `da2-[a-z0-9]{26}`,
"dalfox-slack-webhook1": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}`,
"dalfox-slack-webhook2": `https://hooks.slack.com/services/T[a-zA-Z0-9_]{8,10}/B[a-zA-Z0-9_]{8,10}/[a-zA-Z0-9_]{24}`,

Check failure

Code scanning / CodeQL

Missing regular expression anchor High

When this is used as a regular expression on a URL, it may match anywhere, and arbitrary hosts may come before or after it.
"dalfox-mailgun-api": `key-[0-9a-zA-Z]{32}`,
"dalfox-mailchamp-api": `[0-9a-f]{32}-us[0-9]{1,2}`,
"dalfox-picatic-api": `sk_live_[0-9a-z]{32}`,
"dalfox-google-oauth-id": `[0-9(+-[0-9A-Za-z_]{32}.apps.qooqleusercontent.com`,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped dot before 'qooqleusercontent.com', so it might match more hosts than expected when
the regular expression is used
.
"dalfox-github-access-token": `[a-zA-Z0-9_-]*:[a-zA-Z0-9_\-]+@github\.com*`,
"dalfox-github": `[gG][iI][tT][hH][uU][bB].*['|"][0-9a-zA-Z]{35,40}['|"]`,
"dalfox-gitlab-token": `glpat-[0-9a-zA-Z-_]{20}`,
"dalfox-azure-storage": `[a-zA-Z0-9_-]*\.file.core.windows.net`,

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High

This regular expression has an unescaped dot before 'windows.net', so it might match more hosts than expected when
the regular expression is used
.
Copy link
Owner

@hahwul hahwul left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding the grep patterns. I made some fixes to the escape sequences in the regex patterns to resolve the build errors.

There are a few more codeql errors right now, so I'll correct the requirements separately!
Thank you again!

@hahwul hahwul merged commit d5fe123 into hahwul:main Jan 25, 2026
7 of 8 checks passed
@hahwul hahwul mentioned this pull request Jan 25, 2026
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.

2 participants