Warren Parad 3cbcda20d2 Update authress.go to include alternate form account dash (-) (#1224) 2 years ago
..
adafruit.go 9cc19ec0f8 adding airtable and adafruit (#902) 3 years ago
adobe.go f4ddeda433 Fix proper names capitalization (#907) 3 years ago
age.go 8481f0e9cd adding stopwords (#849) 3 years ago
airtable.go 9cc19ec0f8 adding airtable and adafruit (#902) 3 years ago
algolia.go 469cd22f61 updating generic regex and algoia regex (#875) 3 years ago
alibaba.go 8481f0e9cd adding stopwords (#849) 3 years ago
asana.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 years ago
atlassian.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 years ago
authress.go 3cbcda20d2 Update authress.go to include alternate form account dash (-) (#1224) 2 years ago
aws.go 8481f0e9cd adding stopwords (#849) 3 years ago
beamer.go 8481f0e9cd adding stopwords (#849) 3 years ago
bitbucket.go f4ddeda433 Fix proper names capitalization (#907) 3 years ago
bittrex.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 years ago
clojars.go 8481f0e9cd adding stopwords (#849) 3 years ago
codecov.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 years ago
coinbase.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
config.tmpl 34e67229e6 feat(config): update template logic (#1201) 2 years ago
confluent.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
contentful.go 8481f0e9cd adding stopwords (#849) 3 years ago
databricks.go 8481f0e9cd adding stopwords (#849) 3 years ago
datadog.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 years ago
definednetworking.go 6b0c303b26 Add Defined Networking API Tokens (#1096) 2 years ago
digitalocean.go 2678a54290 Add detection rules for DigitalOcean tokens (#1002) 3 years ago
discord.go 8481f0e9cd adding stopwords (#849) 3 years ago
doppler.go 8481f0e9cd adding stopwords (#849) 3 years ago
droneci.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
dropbox.go c14af5ffdf maintain parity with recent changes... need to create rule contributing guidelines (#891) 3 years ago
duffel.go 8481f0e9cd adding stopwords (#849) 3 years ago
dynatrace.go 8481f0e9cd adding stopwords (#849) 3 years ago
easypost.go 1fb3a77eb8 Update gitleaks.toml (#1116) 2 years ago
etsy.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
facebook.go 8a31f4a4be Improve rule descriptions for Stripe and Facebook access tokens (#1119) 2 years ago
fastly.go 8481f0e9cd adding stopwords (#849) 3 years ago
finicity.go 8481f0e9cd adding stopwords (#849) 3 years ago
finnhub.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
flickr.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
flutterwave.go 70028079b4 Update generate (#892) 3 years ago
frameio.go 8481f0e9cd adding stopwords (#849) 3 years ago
freshbooks.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
gcp.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
generic.go 1fc27eebda adding access to generic rule keywords and identifiers 3 years ago
github.go d0733f96f3 Add rule for fine-grained GitHub PAT (#1026) 3 years ago
gitlab.go afdccad46f Add missing GitLab token patterns (#1077) 3 years ago
gitter.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
gocardless.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 years ago
grafana.go adf512e2ac Add grafana tokens rules (#959) 3 years ago
hashicorp.go 8481f0e9cd adding stopwords (#849) 3 years ago
heroku.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
hubspot.go 8481f0e9cd adding stopwords (#849) 3 years ago
intercom.go 8481f0e9cd adding stopwords (#849) 3 years ago
jfrog.go f0dcd4d9cf feat: add JFrog API and Identity keys (#1233) 2 years ago
jwt.go f77493274a adding jwt tokens with padding format "=" (#1031) 3 years ago
kraken.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
kucoin.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
launchdarkly.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
linear.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 years ago
linkedin.go 8481f0e9cd adding stopwords (#849) 3 years ago
lob.go f93e5dc844 adding a ton of stopwords to the generic rule only as that is the loudest rule (#851) 3 years ago
mailchimp.go 8481f0e9cd adding stopwords (#849) 3 years ago
mailgun.go 8481f0e9cd adding stopwords (#849) 3 years ago
mapbox.go 8481f0e9cd adding stopwords (#849) 3 years ago
mattermost.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 years ago
messagebird.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
netlify.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
newrelic.go 8481f0e9cd adding stopwords (#849) 3 years ago
npm.go 8481f0e9cd adding stopwords (#849) 3 years ago
nytimes.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
okta.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 years ago
openai.go 7dc9ba40a7 Add detection for OpenAI API keys (#1148) 2 years ago
plaid.go b1a2ce7296 fix(plaid): include entropy in go definition (#1252) 2 years ago
planetscale.go 865478bcdc Improve PlanetScale token detection (#874) 3 years ago
postman.go 8481f0e9cd adding stopwords (#849) 3 years ago
prefect.go e35cb6707a add prefect and readme rules (#961) 3 years ago
privatekey.go e002920355 Fix rule for private keys (#1072) 3 years ago
pulumi.go 8481f0e9cd adding stopwords (#849) 3 years ago
pypi.go 8481f0e9cd adding stopwords (#849) 3 years ago
rapidapi.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
readme.go e35cb6707a add prefect and readme rules (#961) 3 years ago
rubygems.go 8481f0e9cd adding stopwords (#849) 3 years ago
rule.go 463d24618f feat(slack): update token regex (#1161) 2 years ago
sendbird.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
sendgrid.go 8481f0e9cd adding stopwords (#849) 3 years ago
sendinblue.go 8481f0e9cd adding stopwords (#849) 3 years ago
sentry.go 05c165deb2 Fixes accidental type typos while translating rules from validation spreadsheet, adds bittrex rule 3 years ago
shippo.go 8481f0e9cd adding stopwords (#849) 3 years ago
shopify.go 8481f0e9cd adding stopwords (#849) 3 years ago
sidekiq.go cd52267113 Feature/add sidekiq rules (#933) 3 years ago
slack.go 463d24618f feat(slack): update token regex (#1161) 2 years ago
snyk.go a685551299 Add makefile variable detections (#1191) 2 years ago
square.go cd52267113 Feature/add sidekiq rules (#933) 3 years ago
squarespace.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
stopwords.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
stripe.go 8a31f4a4be Improve rule descriptions for Stripe and Facebook access tokens (#1119) 2 years ago
sumologic.go 163ec21120 fix(sumologic): improve patterns (#1218) 2 years ago
teams.go db43f9a342 Minor cleanup to error handling and logging (#985) 3 years ago
telegram.go 6705461b33 Fix typos in *.md, comments and logs (#1185) 2 years ago
travisci.go 1297b41b10 adding travis ci 3 years ago
trello.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
twilio.go 8481f0e9cd adding stopwords (#849) 3 years ago
twitch.go 8481f0e9cd adding stopwords (#849) 3 years ago
twitter.go e300b31be5 update twitter rule generation description and id 3 years ago
typeform.go 8481f0e9cd adding stopwords (#849) 3 years ago
vault.go b1853bd032 Add new rules for vault tokens (#919) 3 years ago
yandex.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
zendesk.go efdc7749df Adding okta, codecov, zendesk, and updating Atlassian's rule to include `jira` keyword (#904) 3 years ago

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)
}