Becojo d0733f96f3 Add rule for fine-grained GitHub PAT (#1026) 3 lat temu
..
adafruit.go 9cc19ec0f8 adding airtable and adafruit (#902) 3 lat temu
adobe.go f4ddeda433 Fix proper names capitalization (#907) 3 lat temu
age.go 8481f0e9cd adding stopwords (#849) 3 lat temu
airtable.go 9cc19ec0f8 adding airtable and adafruit (#902) 3 lat temu
algolia.go 469cd22f61 updating generic regex and algoia regex (#875) 3 lat temu
alibaba.go 8481f0e9cd adding stopwords (#849) 3 lat temu
asana.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 lat temu
atlassian.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 lat temu
aws.go 8481f0e9cd adding stopwords (#849) 3 lat temu
beamer.go 8481f0e9cd adding stopwords (#849) 3 lat temu
bitbucket.go f4ddeda433 Fix proper names capitalization (#907) 3 lat temu
bittrex.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 lat temu
clojars.go 8481f0e9cd adding stopwords (#849) 3 lat temu
codecov.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 lat temu
coinbase.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
config.tmpl f6a87ca58c Remove ssn allowlist (#898) 3 lat temu
confluent.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
contentful.go 8481f0e9cd adding stopwords (#849) 3 lat temu
databricks.go 8481f0e9cd adding stopwords (#849) 3 lat temu
datadog.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 lat temu
digitalocean.go 2678a54290 Add detection rules for DigitalOcean tokens (#1002) 3 lat temu
discord.go 8481f0e9cd adding stopwords (#849) 3 lat temu
doppler.go 8481f0e9cd adding stopwords (#849) 3 lat temu
droneci.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
dropbox.go c14af5ffdf maintain parity with recent changes... need to create rule contributing guidelines (#891) 3 lat temu
duffel.go 8481f0e9cd adding stopwords (#849) 3 lat temu
dynatrace.go 8481f0e9cd adding stopwords (#849) 3 lat temu
easypost.go 8481f0e9cd adding stopwords (#849) 3 lat temu
etsy.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
facebook.go f4ddeda433 Fix proper names capitalization (#907) 3 lat temu
fastly.go 8481f0e9cd adding stopwords (#849) 3 lat temu
finicity.go 8481f0e9cd adding stopwords (#849) 3 lat temu
finnhub.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
flickr.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
flutterwave.go 70028079b4 Update generate (#892) 3 lat temu
frameio.go 8481f0e9cd adding stopwords (#849) 3 lat temu
freshbooks.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
gcp.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
generic.go 1fc27eebda adding access to generic rule keywords and identifiers 3 lat temu
github.go d0733f96f3 Add rule for fine-grained GitHub PAT (#1026) 3 lat temu
gitlab.go f4ddeda433 Fix proper names capitalization (#907) 3 lat temu
gitter.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
gocardless.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 lat temu
grafana.go adf512e2ac Add grafana tokens rules (#959) 3 lat temu
hashicorp.go 8481f0e9cd adding stopwords (#849) 3 lat temu
heroku.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
hubspot.go 8481f0e9cd adding stopwords (#849) 3 lat temu
intercom.go 8481f0e9cd adding stopwords (#849) 3 lat temu
jwt.go 96eed6aa0f Pretty output (#973) 3 lat temu
kraken.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
kucoin.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
launchdarkly.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
linear.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 lat temu
linkedin.go 8481f0e9cd adding stopwords (#849) 3 lat temu
lob.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 lat temu
mailchimp.go 8481f0e9cd adding stopwords (#849) 3 lat temu
mailgun.go 8481f0e9cd adding stopwords (#849) 3 lat temu
mapbox.go 8481f0e9cd adding stopwords (#849) 3 lat temu
mattermost.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 lat temu
messagebird.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
netlify.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
newrelic.go 8481f0e9cd adding stopwords (#849) 3 lat temu
npm.go 8481f0e9cd adding stopwords (#849) 3 lat temu
nytimes.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
okta.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 lat temu
plaid.go e78a22e19c Fix Plaid, add Plaid access token (#903) 3 lat temu
planetscale.go 865478bcdc Improve PlanetScale token detection (#874) 3 lat temu
postman.go 8481f0e9cd adding stopwords (#849) 3 lat temu
prefect.go e35cb6707a add prefect and readme rules (#961) 3 lat temu
privatekey.go c8681e4858 refactor: more precise rule for private keys (#930) 3 lat temu
pulumi.go 8481f0e9cd adding stopwords (#849) 3 lat temu
pypi.go 8481f0e9cd adding stopwords (#849) 3 lat temu
rapidapi.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
readme.go e35cb6707a add prefect and readme rules (#961) 3 lat temu
rubygems.go 8481f0e9cd adding stopwords (#849) 3 lat temu
rule.go cd52267113 Feature/add sidekiq rules (#933) 3 lat temu
sendbird.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
sendgrid.go 8481f0e9cd adding stopwords (#849) 3 lat temu
sendinblue.go 8481f0e9cd adding stopwords (#849) 3 lat temu
sentry.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 lat temu
shippo.go 8481f0e9cd adding stopwords (#849) 3 lat temu
shopify.go 8481f0e9cd adding stopwords (#849) 3 lat temu
sidekiq.go cd52267113 Feature/add sidekiq rules (#933) 3 lat temu
slack.go 2678a54290 Add detection rules for DigitalOcean tokens (#1002) 3 lat temu
square.go cd52267113 Feature/add sidekiq rules (#933) 3 lat temu
squarespace.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
stopwords.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
stripe.go 8481f0e9cd adding stopwords (#849) 3 lat temu
sumologic.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
teams.go db43f9a342 Minor cleanup to error handling and logging (#985) 3 lat temu
telegram.go fc98cbf159 Issue #980: Add support for Telegram Bot API Token (#981) 3 lat temu
travisci.go 1297b41b10 adding travis ci 3 lat temu
trello.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
twilio.go 8481f0e9cd adding stopwords (#849) 3 lat temu
twitch.go 8481f0e9cd adding stopwords (#849) 3 lat temu
twitter.go e300b31be5 update twitter rule generation description and id 3 lat temu
typeform.go 8481f0e9cd adding stopwords (#849) 3 lat temu
vault.go b1853bd032 Add new rules for vault tokens (#919) 3 lat temu
yandex.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 lat temu
zendesk.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 lat temu

readme.go

package rules

import (
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
"github.com/zricethezav/gitleaks/v8/config"
)

func ReadMe() *config.Rule {
// define rule
r := config.Rule{
RuleID: "readme-api-token",
Description: "Readme API token",
Regex: generateUniqueTokenRegex(`rdme_[a-z0-9]{70}`),
SecretGroup: 1,
Keywords: []string{
"rdme_",
},
}

// validate
tps := []string{
generateSampleSecret("api-token", "rdme_"+secrets.NewSecret(alphaNumeric("70"))),
}
return validate(r, tps, nil)
}