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

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