malmor 8a1ca9ecc9 Added poetry.lock to default allowlist paths (#1474) hace 1 año
..
adafruit.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
adobe.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
age.go 6c52f878cc fix: age rule id with dashes (#1349) hace 2 años
airtable.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
algolia.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
alibaba.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
asana.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
atlassian.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
authress.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
aws.go 76c9e3175b Remove IAM identifiers for non-credential resources in the aws-access-token rule (#1307) hace 2 años
beamer.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
bitbucket.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
bittrex.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
clojars.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
cloudflare.go 821b232394 Add Cloudflare API and Origin CA keys (#1374) hace 1 año
codecov.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
coinbase.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
config.tmpl 8a1ca9ecc9 Added poetry.lock to default allowlist paths (#1474) hace 1 año
confluent.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
contentful.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
databricks.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
datadog.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
definednetworking.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
digitalocean.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
discord.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
doppler.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
droneci.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
dropbox.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
duffel.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
dynatrace.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
easypost.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
etsy.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
facebook.go 39947b0b0d extend FB access token discovery (#1407) hace 1 año
fastly.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
finicity.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
finnhub.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
flickr.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
flutterwave.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
frameio.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
freshbooks.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
gcp.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
generic.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
github.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
gitlab.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
gitter.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
gocardless.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
grafana.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
harness.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
hashicorp.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
heroku.go 821b232394 Add Cloudflare API and Origin CA keys (#1374) hace 1 año
hubspot.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
huggingface.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
infracost.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
intercom.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
intra42.go 575e923cf8 Add intra42 client secret (#1408) hace 1 año
jfrog.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
jwt.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
kraken.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
kubernetes.go 7697b3e989 (feat): Adding secret detection rule for Kubernetes secrets (#1454) hace 1 año
kucoin.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
launchdarkly.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
linear.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
linkedin.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
lob.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
mailchimp.go 979f213b93 update mailchimp with new tokens (#1376) hace 2 años
mailgun.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
mapbox.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
mattermost.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
messagebird.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
netlify.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
newrelic.go fe94ef9ca3 Add NewRelic insert key detection (#1417) hace 1 año
npm.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
nytimes.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
okta.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
openai.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
openshift.go c1345e1b2b feat(openshift): add user token (#1449) hace 1 año
plaid.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
planetscale.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
postman.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
prefect.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
privatekey.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
pulumi.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
pypi.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
rapidapi.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
readme.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
rubygems.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
rule.go 02808f45d0 Limit hashicorp-tf-password to .tf/.hcl files (#1420) hace 1 año
scalingo.go 79cac73f72 tests: scalingo validation consistent test (#1359) hace 1 año
sendbird.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
sendgrid.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
sendinblue.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
sentry.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
shippo.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
shopify.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
sidekiq.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
slack.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
snyk.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
square.go db69e8266e add update token from square (#1370) hace 2 años
squarespace.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
stopwords.go 128b50f67b style: sort the stopwords (#1289) hace 2 años
stripe.go 247f423a39 add real (test) standard and restricted keys (#1375) hace 1 año
sumologic.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
teams.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
telegram.go b4009bfba4 chore: remove unnecessary capture groups (#1460) hace 1 año
travisci.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
trello.go e63b657bcf remove secretgroup from default config (#1288) hace 2 años
twilio.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
twitch.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
twitter.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
typeform.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
vault.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
yandex.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años
zendesk.go 8de8938ad4 Enhance Secret Descriptions (#1300) hace 2 años

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: "Detected a Readme API token, risking unauthorized documentation management and content exposure.",
Regex: generateUniqueTokenRegex(`rdme_[a-z0-9]{70}`, true),

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

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