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