Juan C. Mancebo 11c2ad01a4 Add gradle.lockfile to allowlist (#1112) 3 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
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 11c2ad01a4 Add gradle.lockfile to allowlist (#1112) 3 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
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 8481f0e9cd adding stopwords (#849) 3 years ago
etsy.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
facebook.go f4ddeda433 Fix proper names capitalization (#907) 3 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
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
plaid.go e78a22e19c Fix Plaid, add Plaid access token (#903) 3 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 cd52267113 Feature/add sidekiq rules (#933) 3 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 2678a54290 Add detection rules for DigitalOcean tokens (#1002) 3 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 8481f0e9cd adding stopwords (#849) 3 years ago
sumologic.go 73a3cf8afb Adding a bunch of new rules, update allowlist to include node_modules… (#896) 3 years ago
teams.go db43f9a342 Minor cleanup to error handling and logging (#985) 3 years ago
telegram.go fc98cbf159 Issue #980: Add support for Telegram Bot API Token (#981) 3 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)
}