-
Notifications
You must be signed in to change notification settings - Fork 755
Documenting false_secrets in pubspec.yaml
#3409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The short-link `https://dart.dev/go/false-leaks` is used in the `pub` client error messages as a means to explain how _false positives_ found by leak detection can be ignored.
false_leaks in pubspec.yamlfalse_secrets in pubspec.yaml
sigurdm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
kwalrath
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @jonasfj are my changes all right by you?
|
This page had some changes, so I staged the merged version (a clean merge). |
Yeah, this looks great :D |
| Leak detection isn't perfect. | ||
| To avoid false positives, | ||
| you can tell pub not to search for leaks in certain files, | ||
| using [`gitignore` patterns][] under |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest changing:
"you can tell pub not to search for leaks in certain files,
using [gitignore patterns][]"
To:
"you can tell pub not to search for leaks in certain files,
by creating an allowlist
using [gitignore patterns][]"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonasfj WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll send a separate PR for that potential change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation on
pubclient: dart-lang/pub#3049.Many of the patterns and heuristics for detection of leaks are adopted from How Bad Can It Git? and awslabs/git-secrets.
We could perhaps consider mentioning these in the documentation, to help people better understand what kind of heuristics is employed for leak detection.
This won't ship until Dart 2.15, I'm not planning to sneak in new features right before the window closes.