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

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