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