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

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