Skip to content

Commit 973c794

Browse files
authoredJan 13, 2025··
chore(rules): include fps in reference (#1471)
1 parent f0d4499 commit 973c794

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎CONTRIBUTING.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ If you want to add a new rule to the [default Gitleaks configuration](https://gi
4949
tps := []string{
5050
generateSampleSecret("beamer", "b_"+secrets.NewSecret(alphaNumericExtended("44"))),
5151
}
52-
return validate(r, tps, nil)
52+
fps := []string{
53+
`R21A-A-V010SP13RC181024R16900-CN-B_250K-Release-OTA-97B6C6C59241976086FABDC41472150C.bfu`,
54+
}
55+
return validate(r, tps, fps)
5356
}
5457
```
5558

‎cmd/generate/config/rules/beamer.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ func Beamer() *config.Rule {
1818

1919
// validate
2020
tps := utils.GenerateSampleSecrets("beamer", "b_"+secrets.NewSecret(utils.AlphaNumericExtended("44")))
21-
return utils.Validate(r, tps, nil)
21+
fps := []string{
22+
`│   ├── R21A-A-V010SP13RC181024R16900-CN-B_250K-Release-OTA-97B6C6C59241976086FABDC41472150C.bfu`,
23+
}
24+
return utils.Validate(r, tps, fps)
2225
}

0 commit comments

Comments
 (0)
Please sign in to comment.