Richard Gomez db782603f7 feat(github): add entropy to rule (#1489) há 1 ano atrás
..
adafruit.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
adobe.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
age.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
airtable.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
algolia.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
alibaba.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
asana.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
atlassian.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
authress.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
aws.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
beamer.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
bitbucket.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
bittrex.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
clojars.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
cloudflare.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
codecov.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
coinbase.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
config.tmpl 3698060a2b refactor(kubernetes-secret): collapse rules and update regex (#1462) há 1 ano atrás
confluent.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
contentful.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
databricks.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
datadog.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
definednetworking.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
digitalocean.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
discord.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
doppler.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
droneci.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
dropbox.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
duffel.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
dynatrace.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
easypost.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
etsy.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
facebook.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
fastly.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
finicity.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
finnhub.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
flickr.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
flutterwave.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
frameio.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
freshbooks.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
gcp.go df126a7473 feat(gcp): update api key rule (#1481) há 1 ano atrás
generic.go 4e43d11093 chore: fix gl workflow error (#1487) há 1 ano atrás
github.go db782603f7 feat(github): add entropy to rule (#1489) há 1 ano atrás
gitlab.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
gitter.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
gocardless.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
grafana.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
harness.go e93a7c0d26 Update Harness rules to add _ and - in the account ID part. (#1503) há 1 ano atrás
hashicorp.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
hashicorp_vault.go 75dd70e59a fix(hashicorp): ignore common fps (#1498) há 1 ano atrás
heroku.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
hubspot.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
huggingface.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
infracost.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
intercom.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
intra42.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
jfrog.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
jwt.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
kraken.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
kubernetes.go 3698060a2b refactor(kubernetes-secret): collapse rules and update regex (#1462) há 1 ano atrás
kucoin.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
launchdarkly.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
linear.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
linkedin.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
lob.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mailchimp.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mailgun.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mapbox.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mattermost.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
messagebird.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
netlify.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
newrelic.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
npm.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
nytimes.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
okta.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
openai.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
openshift.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
plaid.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
planetscale.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
postman.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
prefect.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
privatekey.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
pulumi.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
pypi.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
rapidapi.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
readme.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
rubygems.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
scalingo.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sendbird.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sendgrid.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sendinblue.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sentry.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
shippo.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
shopify.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sidekiq.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
slack.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
snyk.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
square.go 8510d39ffe fix(square): make prefix case sensitive (#1469) há 1 ano atrás
squarespace.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
stopwords.go 128b50f67b style: sort the stopwords (#1289) há 2 anos atrás
stripe.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sumologic.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
teams.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
telegram.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
travisci.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
trello.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
twilio.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
twitch.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
twitter.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
typeform.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
yandex.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
zendesk.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás

readme.go

package rules

import (
"github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils"
"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: "Detected a Readme API token, risking unauthorized documentation management and content exposure.",
Regex: utils.GenerateUniqueTokenRegex(`rdme_[a-z0-9]{70}`, true),

Keywords: []string{
"rdme_",
},
}

// validate
tps := []string{
utils.GenerateSampleSecret("api-token", "rdme_"+secrets.NewSecret(utils.AlphaNumeric("70"))),
}
return utils.Validate(r, tps, nil)
}