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

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