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