Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Airtable Personal Access Token Detector #3933

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nabeelalam
Copy link
Contributor

@nabeelalam nabeelalam commented Feb 24, 2025

Description:

This PR introduces a new detector for Airtable Personal Access Tokens.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@nabeelalam nabeelalam marked this pull request as ready for review February 24, 2025 16:41
@nabeelalam nabeelalam requested review from a team as code owners February 24, 2025 16:41

var (
defaultClient = common.SaneHttpClient()
tokenPat = regexp.MustCompile(`\b(pat[[:alnum:]]{14}\.[a-f0-9]{64})\b`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm slightly concerned that this will be too loose. Can we use the prefix helper here to tighten up the regex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants