Skip to content

Conversation

sirakav
Copy link
Contributor

@sirakav sirakav commented Apr 13, 2025

Description:

Adds a new rule to detect Perplexity AI API keys (pplx-...). This enhances secret detection capabilities by including keys for the Perplexity AI service.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

Copy link
Contributor

@rgmz rgmz left a comment

Choose a reason for hiding this comment

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

A few suggestions.

sirakav and others added 5 commits April 14, 2025 07:40
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
@sirakav
Copy link
Contributor Author

sirakav commented Apr 15, 2025

Can we merge this?

@zricethezav zricethezav merged commit 7fb21a4 into gitleaks:master Apr 28, 2025
2 checks passed
alayne222 pushed a commit to alayne222/gitleaks that referenced this pull request May 28, 2025
* feat(rules): Add Perplexity AI API key detection

* Fix generation

* Fix imports

* Update cmd/generate/config/rules/perplexity.go

Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>

* Update cmd/generate/config/rules/perplexity.go

Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>

* Update cmd/generate/config/rules/perplexity.go

Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>

* Adjust regex, add imports

* Generate config

---------

Co-authored-by: vno <vno@serity.io>
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
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